mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Combine assignment of $_Z_DATA, $Z_DATA or $HOME/.z
Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
This commit is contained in:
parent
f39ee39a36
commit
1c9ecd781c
|
@ -43,8 +43,7 @@ elif type zoxide >/dev/null 2>&1; then
|
|||
fi
|
||||
else
|
||||
# rupa/z uses $_Z_DATA, jethrokuan/z (=port of z for fish) uses $Z_DATA
|
||||
datafile="${_Z_DATA:-$Z_DATA}"
|
||||
datafile="${datafile:-$HOME/.z}"
|
||||
datafile="${_Z_DATA:-${Z_DATA:-$HOME/.z}}"
|
||||
if type fzf >/dev/null 2>&1 && [ -f "$datafile" ]; then
|
||||
# Read the data from z's file instead of calling
|
||||
# z so the data doesn't need to be processed twice
|
||||
|
|
Loading…
Reference in a new issue