From 7d4bdc2c802f024ed9a9cf8c37dca8e5374b1ca0 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 18 Aug 2018 01:27:16 -0400 Subject: Use whence instead of type type is an alias for whence -v and is more for human consumption. --- home/.kshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home') 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 -- cgit 1.4.1