nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1723aeb470c36f0074e881d60a12af7312babaf9
parent 046d676a73b70d5c8bd39a5a37866aa75fe70598
Author: Terminator X <engineerarun@gmail.com>
Date:   Mon, 27 Sep 2021 05:38:12 +0530

Merge pull request #1180 from MaxGyver83/master

autojump plugin: Support jethrokuan/z (port of z for fish)
Diffstat:
Mplugins/autojump | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plugins/autojump b/plugins/autojump @@ -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 # @@ -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