From 9a26c1f17bf944cd4d906022e50bce6c631f027a Mon Sep 17 00:00:00 2001 From: Harald Wartig Date: Wed, 7 Sep 2016 06:56:16 +0200 Subject: [PATCH] Set AUTOJUMP env variables using `set -gx`. Due to changes in the way fish handles variable lookup the fish autojump integration stopped working with fish version 2.3. By exporting the needed variables globally it works also with fish 2.3. --- bin/autojump.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/autojump.fish b/bin/autojump.fish index b16ef01..b9af80c 100644 --- a/bin/autojump.fish +++ b/bin/autojump.fish @@ -1,4 +1,4 @@ -set -x AUTOJUMP_SOURCED 1 +set -gx AUTOJUMP_SOURCED 1 # set user installation path if test -d ~/.autojump @@ -17,11 +17,11 @@ complete -x -c j -a '(autojump --complete (commandline -t))' # set error file location if test (uname) = "Darwin" - set -x AUTOJUMP_ERROR_PATH ~/Library/autojump/errors.log + set -gx AUTOJUMP_ERROR_PATH ~/Library/autojump/errors.log else if test -d "$XDG_DATA_HOME" - set -x AUTOJUMP_ERROR_PATH $XDG_DATA_HOME/autojump/errors.log + set -gx AUTOJUMP_ERROR_PATH $XDG_DATA_HOME/autojump/errors.log else - set -x AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log + set -gx AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log end if test ! -d (dirname $AUTOJUMP_ERROR_PATH)