Skip to content

Commit

Permalink
Better handle missing PROMPT_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinChartier committed Jul 3, 2019
1 parent 405d259 commit 36f8a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/bash_shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (shell *BashShell) Enter() error {
source ~/.bashrc
if [ -z "${OLD_PROMPT_COMMAND+x}" ]; then
OLD_PROMPT_COMMAND="$PROMPT_COMMAND"
OLD_PROMPT_COMMAND="${PROMPT_COMMAND:-true}"
fi
if [ -z "${OLD_PS1+x}" ]; then
OLD_PS1="$PS1"
Expand Down

0 comments on commit 36f8a99

Please sign in to comment.