mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									851f3e3b2d
								
							
						
					
					
						commit
						9a26c1f17b
					
				| @ -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) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user