Skip to content

Commit

Permalink
Merge pull request #1180 from MaxGyver83/master
Browse files Browse the repository at this point in the history
autojump plugin: Support jethrokuan/z (port of z for fish)
  • Loading branch information
jarun authored Sep 27, 2021
2 parents 046d676 + 1c9ecd7 commit 1723aeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/autojump
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# - OR autojump - https://github.com/wting/autojump
# - OR zoxide - https://github.com/ajeetdsouza/zoxide
# - 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
#
Expand Down Expand Up @@ -41,7 +42,8 @@ elif type zoxide >/dev/null 2>&1; then
printf "%s" "0c$odir" > "$NNN_PIPE"
fi
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:-$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
Expand Down

0 comments on commit 1723aeb

Please sign in to comment.