scripts: Add nsxiv-rifle script

Opens basically any path, local or remote in nsxiv.
Can take multiple paths to open all of them.

Additionally, alias whichever version of the image viewer is available
on the system as `iv`, using `nsxiv-rifle`, `nsxiv`, `sxiv` in order of
preference.
This commit is contained in:
Marty Oehme 2022-08-06 21:54:55 +02:00
parent 13ec6ed600
commit aa47068fd0
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 86 additions and 0 deletions

View file

@ -93,6 +93,17 @@ if exist vifm; then
alias vmm='vifm ${PWD}'
fi
# nsxiv image viewer
if exist nsxiv; then
if exist nsxiv-rifle; then
alias iv=nsxiv-rifle
else
alias iv=nsxiv
fi
elif exist sxiv; then
alias iv=sxiv
fi
# python
if exist ptipython; then
alias py=ptipython