Skip to content

Commit 1723aeb

Browse files
authored
Merge pull request #1180 from MaxGyver83/master
autojump plugin: Support jethrokuan/z (port of z for fish)
2 parents 046d676 + 1c9ecd7 commit 1723aeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/autojump

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# - OR autojump - https://github.com/wting/autojump
88
# - OR zoxide - https://github.com/ajeetdsouza/zoxide
99
# - OR z - https://github.com/rupa/z (z requires fzf)
10+
# - OR z (fish) - https://github.com/jethrokuan/z (z requires fzf)
1011
#
1112
# Note: The dependencies STORE NAVIGATION PATTERNS
1213
#
@@ -41,7 +42,8 @@ elif type zoxide >/dev/null 2>&1; then
4142
printf "%s" "0c$odir" > "$NNN_PIPE"
4243
fi
4344
else
44-
datafile="${_Z_DATA:-$HOME/.z}"
45+
# rupa/z uses $_Z_DATA, jethrokuan/z (=port of z for fish) uses $Z_DATA
46+
datafile="${_Z_DATA:-${Z_DATA:-$HOME/.z}}"
4547
if type fzf >/dev/null 2>&1 && [ -f "$datafile" ]; then
4648
# Read the data from z's file instead of calling
4749
# z so the data doesn't need to be processed twice

0 commit comments

Comments
 (0)