From 7fdbedfce3faaa0b27eeb179f240ee8f901c1f97 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Thu, 26 Jun 2025 21:59:19 +0400 Subject: feat(aliasrc): alias sxiv to nsxiv if sxiv is not installed --- config/shell/aliasrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/shell') 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 \ -- cgit v1.2.3