mirror of
https://github.com/jarun/nnn.git
synced 2024-11-27 21:31:30 +00:00
nuke plugin: use $VISUAL environment variable
falls back to previous behavior if $VISUAL is not set ($EDITOR then vi)
This commit is contained in:
parent
9e3bd377b0
commit
ea81864e03
|
@ -76,7 +76,7 @@ IMAGE_CACHE_PATH="$(dirname "$1")"/.thumbs
|
|||
|
||||
FPATH="$1"
|
||||
FNAME=$(basename "$1")
|
||||
EDITOR="${EDITOR:-vi}"
|
||||
EDITOR="${VISUAL:-${EDITOR:-vi}}"
|
||||
PAGER="${PAGER:-less -R}"
|
||||
ext="${FNAME##*.}"
|
||||
if [ -n "$ext" ]; then
|
||||
|
|
Loading…
Reference in a new issue