mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	updated autojump.bash, removing export
exporting the prompt seems to be too harsh and breaks the shell in Emacs as the PROMPT_COMMAND for xterm (say) overwrites the 'dumb' PROMPT_COMMAND, which now is 'contaminated' with ASCII escape strings.
This commit is contained in:
		
							parent
							
								
									9c1c73a673
								
							
						
					
					
						commit
						e83ee24ea7
					
				@ -68,7 +68,7 @@ case $PROMPT_COMMAND in
 | 
			
		||||
    *autojump*)
 | 
			
		||||
        ;;
 | 
			
		||||
    *)
 | 
			
		||||
        export PROMPT_COMMAND="${PROMPT_COMMAND:+$(echo "${PROMPT_COMMAND}" | awk '{gsub(/; *$/,"")}1') ; }autojump_add_to_database"
 | 
			
		||||
        PROMPT_COMMAND="${PROMPT_COMMAND:+$(echo "${PROMPT_COMMAND}" | awk '{gsub(/; *$/,"")}1') ; }autojump_add_to_database"
 | 
			
		||||
        ;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user