summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-18 01:27:16 -0400
committerJune McEnroe <june@causal.agency>2018-08-18 01:27:16 -0400
commit500195d6f1d13fc988bba60d6b35a7bdb5bb3a49 (patch)
treeacfc8ec02eef13a55a3391dbbc0eaf259c1305e5
parentCut off path components until right prompt fits (diff)
downloadsrc-500195d6f1d13fc988bba60d6b35a7bdb5bb3a49.tar.gz
src-500195d6f1d13fc988bba60d6b35a7bdb5bb3a49.zip
Use whence instead of type
type is an alias for whence -v and is more for human consumption.
Diffstat (limited to '')
-rw-r--r--home/.kshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/.kshrc b/home/.kshrc
index 734d71b7..196b8ad1 100644
--- a/home/.kshrc
+++ b/home/.kshrc
@@ -12,7 +12,7 @@ CDPATH=:$HOME
 
 export PAGER=less
 export EDITOR=vim
-if type nvim > /dev/null; then
+if whence nvim > /dev/null; then
 	EDITOR=nvim
 	alias vim=nvim
 	export MANPAGER="nvim -c 'set ft=man' -"
@@ -61,7 +61,7 @@ function branch {
 	fi
 }
 
-type realpath > /dev/null && HOME=$(realpath "$HOME")
+whence realpath > /dev/null && HOME=$(realpath "$HOME")
 function prompt {
 	typeset status=$?
 	typeset path title right color left cols
e/.config/X/resources?id=b5142f3a55dcdfcf96cdeda4b04bc78407cae0a8&follow=1'>Use class names for Foreground, Background, BorderColorJune McEnroe 2021-02-07Add simple battery status and clock to xsessionJune McEnroe 2021-02-07Set cursor theme and sizeJune McEnroe 2021-02-07Use scrot for up -s if no screencaptureJune McEnroe 2021-02-07Enable mouse acceleration in XJune McEnroe 2021-02-07Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe