summaryrefslogtreecommitdiff
path: root/config.fish
diff options
context:
space:
mode:
authorache <ache@ache.one>2023-02-26 01:17:59 +0100
committerache <ache@ache.one>2023-02-26 01:17:59 +0100
commit81f21a185063c6ab533b95ca13f5b9745e95bb8e (patch)
treea31684824fb654a299227e0c3a394b0997472db3 /config.fish
parentListt of plugins (diff)
Use type instead of which
Diffstat (limited to 'config.fish')
-rw-r--r--config.fish10
1 files changed, 5 insertions, 5 deletions
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"