Skip to content

Commit

Permalink
store_exit_status was clobbering autojump
Browse files Browse the repository at this point in the history
  • Loading branch information
trotter committed Apr 17, 2010
1 parent 6bbf6ce commit 8e206b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion environment.conf
Expand Up @@ -20,7 +20,9 @@ show_time() {
}

# Stores the exit status of the last command for use by show_exit_status function.
export PROMPT_COMMAND="store_exit_status"
if [[ ! $PROMPT_COMMAND =~ store_exit_status ]]; then
export PROMPT_COMMAND="store_exit_status && ${PROMPT_COMMAND:-:}"
fi
store_exit_status() {
LAST_EXIT_STATUS=$?
}
Expand Down

0 comments on commit 8e206b5

Please sign in to comment.