summary refs log tree commit diff
path: root/home
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
commit7d4bdc2c802f024ed9a9cf8c37dca8e5374b1ca0 (patch)
treef75b06e3d407b90389ad40b9e75bc72210ada1ac /home
parentCut off path components until right prompt fits (diff)
downloadsrc-7d4bdc2c802f024ed9a9cf8c37dca8e5374b1ca0.tar.gz
src-7d4bdc2c802f024ed9a9cf8c37dca8e5374b1ca0.zip
Use whence instead of type
type is an alias for whence -v and is more for human consumption.
Diffstat (limited to 'home')
-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 McEnroe 2018-09-13Move color selection to format.cJune McEnroe 2018-09-13Fix len for format->split at end of stringJune McEnroe 2018-09-13Avoid uninitialized x in uiReadJune McEnroe 2018-09-13Add IRCDefault to colors enumJune McEnroe 2018-09-13Return a format->split even at the end of the stringJune McEnroe 2018-09-13Fix weird tab-complete after commaJune McEnroe 2018-09-13Rewrite UI againJune McEnroe 2018-09-12Add note about C-oJune McEnroe 2018-09-12Use formatParse split to position input cursorJune McEnroe 2018-09-12Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe