sh: Add imv to iv image alias
This commit is contained in:
parent
46a349cba1
commit
3ece309f67
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue