diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-06-26 21:59:19 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-06-26 21:59:19 +0400 |
commit | 7fdbedfce3faaa0b27eeb179f240ee8f901c1f97 (patch) | |
tree | 1cc77d666afeb1f741025a2cb40b39412001d6ea /config | |
parent | 5954b4938ff0b019e88ed5e44db90196aee8fbf0 (diff) |
feat(aliasrc): alias sxiv to nsxiv if sxiv is not installed
Diffstat (limited to 'config')
-rw-r--r-- | config/shell/aliasrc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/shell/aliasrc b/config/shell/aliasrc index 41a2395..2de3313 100644 --- a/config/shell/aliasrc +++ b/config/shell/aliasrc @@ -5,6 +5,10 @@ [ -x "$(command -v nvim)" ] && alias vi="nvim" [ -x "$(command -v neomutt)" ] && alias mutt="neomutt" +if [ -x "$(command -v nsxiv)" ] && ! [ -x "$(command -v sxiv)" ]; then + alias sxiv="nsxiv" +fi + # TODO: Deal with the flags that are not supported on BSD # Older versions of ip doesn't support -color flg, so don't use it alias \ |