mirror of
https://github.com/jarun/nnn.git
synced 2024-11-04 18:33:12 +00:00
Merge pull request #1232 from KlzXS/nmv_list_env
Env variable should be not set, not set to 0
This commit is contained in:
commit
8b7feff4b6
|
@ -22,7 +22,6 @@ TMPDIR="${TMPDIR:-/tmp}"
|
||||||
INCLUDE_HIDDEN="${INCLUDE_HIDDEN:-0}"
|
INCLUDE_HIDDEN="${INCLUDE_HIDDEN:-0}"
|
||||||
VERBOSE="${VERBOSE:-0}"
|
VERBOSE="${VERBOSE:-0}"
|
||||||
RECURSIVE="${RECURSIVE:-0}"
|
RECURSIVE="${RECURSIVE:-0}"
|
||||||
NNN_LIST="${NNN_LIST:-0}"
|
|
||||||
|
|
||||||
selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
|
selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
|
||||||
exit_status=0
|
exit_status=0
|
||||||
|
@ -67,7 +66,7 @@ printf "%s" "$arr" | awk '{printf("%'"${width}"'d %s\n", NR, $0)}' > "$dst_file"
|
||||||
|
|
||||||
items=("~")
|
items=("~")
|
||||||
while IFS='' read -r line; do
|
while IFS='' read -r line; do
|
||||||
if [ "$NNN_LIST" -eq 1 ]; then
|
if [ -n "$NNN_LIST" ]; then
|
||||||
line=$(readlink "$line" || printf "%s" "$line")
|
line=$(readlink "$line" || printf "%s" "$line")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue