1
0
Fork 0
mirror of https://github.com/jarun/nnn.git synced 2025-03-13 02:04:03 +00:00

autojump plugin: Support jethrokuan/z (port of z for fish)

This commit is contained in:
Max Schillinger 2021-09-26 21:54:01 +02:00
parent 046d676a73
commit f39ee39a36

View file

@ -7,6 +7,7 @@
# - OR autojump - https://github.com/wting/autojump # - OR autojump - https://github.com/wting/autojump
# - OR zoxide - https://github.com/ajeetdsouza/zoxide # - OR zoxide - https://github.com/ajeetdsouza/zoxide
# - OR z - https://github.com/rupa/z (z requires fzf) # - OR z - https://github.com/rupa/z (z requires fzf)
# - OR z (fish) - https://github.com/jethrokuan/z (z requires fzf)
# #
# Note: The dependencies STORE NAVIGATION PATTERNS # Note: The dependencies STORE NAVIGATION PATTERNS
# #
@ -41,7 +42,9 @@ elif type zoxide >/dev/null 2>&1; then
printf "%s" "0c$odir" > "$NNN_PIPE" printf "%s" "0c$odir" > "$NNN_PIPE"
fi fi
else else
datafile="${_Z_DATA:-$HOME/.z}" # rupa/z uses $_Z_DATA, jethrokuan/z (=port of z for fish) uses $Z_DATA
datafile="${_Z_DATA:-$Z_DATA}"
datafile="${datafile:-$HOME/.z}"
if type fzf >/dev/null 2>&1 && [ -f "$datafile" ]; then if type fzf >/dev/null 2>&1 && [ -f "$datafile" ]; then
# Read the data from z's file instead of calling # Read the data from z's file instead of calling
# z so the data doesn't need to be processed twice # z so the data doesn't need to be processed twice