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
1 changed files with 12 additions and 2 deletions

View File

@ -94,8 +94,18 @@ if exist vifm; then
alias vmm='vifm ${PWD}'
fi
# nsxiv image viewer
if exist nsxiv; then
# default image viewer
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
alias iv=nsxiv-rifle
else