sh: Add imv to iv image alias

This commit is contained in:
Marty Oehme 2023-01-07 14:54:32 +01:00
parent 46a349cba1
commit 3ece309f67
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -94,8 +94,18 @@ if exist vifm; then
alias vmm='vifm ${PWD}' alias vmm='vifm ${PWD}'
fi fi
# nsxiv image viewer # default image viewer
if exist nsxiv; then if exist imv-folder; then
iv() {
if [ "$#" -eq 1 ] && [ -f "$1" ]; then
imv-folder "$1"
else
imv "$@"
fi
}
elif exist imv; then
alias iv=imv
elif exist nsxiv; then
if exist nsxiv-rifle; then if exist nsxiv-rifle; then
alias iv=nsxiv-rifle alias iv=nsxiv-rifle
else else