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.
pull/440/head
Harald Wartig 8 years ago
parent 851f3e3b2d
commit 9a26c1f17b

@ -1,4 +1,4 @@
set -x AUTOJUMP_SOURCED 1 set -gx AUTOJUMP_SOURCED 1
# set user installation path # set user installation path
if test -d ~/.autojump if test -d ~/.autojump
@ -17,11 +17,11 @@ complete -x -c j -a '(autojump --complete (commandline -t))'
# set error file location # set error file location
if test (uname) = "Darwin" 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" 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 else
set -x AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log set -gx AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log
end end
if test ! -d (dirname $AUTOJUMP_ERROR_PATH) if test ! -d (dirname $AUTOJUMP_ERROR_PATH)

Loading…
Cancel
Save