mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Fixes #114: autojump suppresses the error message caused by 'j --help'.
This commit is contained in:
		
							parent
							
								
									a17d904e16
								
							
						
					
					
						commit
						465ca7908a
					
				@ -80,5 +80,4 @@ case $PROMPT_COMMAND in
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
alias jumpstat="autojump --stat"
 | 
			
		||||
function j { new_path="$(autojump $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";else false; fi }
 | 
			
		||||
 | 
			
		||||
function j { new_path="$(autojump $@)";if [ -d "${new_path}" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "${new_path}";else false; fi }
 | 
			
		||||
 | 
			
		||||
@ -52,4 +52,4 @@ preexec_functions+=autojump_preexec
 | 
			
		||||
 | 
			
		||||
alias jumpstat="autojump --stat"
 | 
			
		||||
 | 
			
		||||
function j { local new_path="$(autojump $@)";if [ -n "${new_path}" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "${new_path}";else false; fi }
 | 
			
		||||
function j { local new_path="$(autojump $@)";if [ -d "${new_path}" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "${new_path}";else false; fi }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user