From 81f21a185063c6ab533b95ca13f5b9745e95bb8e Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 26 Feb 2023 01:17:59 +0100 Subject: Use type instead of which --- config.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config.fish') diff --git a/config.fish b/config.fish index 77e00bc..4485a78 100644 --- a/config.fish +++ b/config.fish @@ -1,14 +1,14 @@ if status is-interactive - if which khal 2> /dev/null > /dev/null + if type khal 2> /dev/null > /dev/null khal calendar 2> /dev/null end end -if which roxterm 2> /dev/null > /dev/null +if type roxterm 2> /dev/null > /dev/null set -x TERMINAL roxterm end -if which nvim 2> /dev/null > /dev/null +if type nvim 2> /dev/null > /dev/null set -x VISUAL nvim set -x EDITOR nvim set -x SYSTEMD_EDITOR nvim @@ -18,7 +18,7 @@ else set -x SYSTEMD_EDITOR vim end -if which ruby 2> /dev/null > /dev/null +if type ruby 2> /dev/null > /dev/null set RUBY_PATH (ruby -e 'print Gem.user_dir')/bin end @@ -58,7 +58,7 @@ if [ -d "$DEVKITPRO_DIR" ] set -x PATH $PATH "$DEVKITPRO_PATH" end -if which fcitx 2> /dev/null > /dev/null +if type fcitx 2> /dev/null > /dev/null set -x GTK_IM_MODULE "fcitx" set -x QT_IM_MODULE "fcitx" set -x XMODIFIERS "@im=fcitx" -- cgit v1.2.3