Skip to content

Commit

Permalink
Preserve the previous $PROMPT_COMMAND status in bash
Browse files Browse the repository at this point in the history
An attempt to fix #5.
  • Loading branch information
gsamokovarov committed Feb 1, 2016
1 parent b78e22e commit f124fa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/bash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ var Bash = Shell(`# Put the line below in ~/.bashrc or ~/bash_profile:
# The following lines are autogenerated:
__jump_prompt_command() {
jump chdir
local status=$?
jump chdir && return $status
}
[[ "$PROMPT_COMMAND" =~ __jump_prompt_command ]] || {
Expand Down

0 comments on commit f124fa4

Please sign in to comment.