Skip to content

Commit

Permalink
Merge pull request #84 from jamesmcdonald/master
Browse files Browse the repository at this point in the history
Move update_cache to the end of PROMPT_COMMAND
  • Loading branch information
jonmosco committed May 24, 2019
2 parents 460bc65 + fff89ea commit 953c7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kube-ps1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ _kube_ps1_init() {
_KUBE_PS1_CLOSE_ESC=$'\002'
_KUBE_PS1_DEFAULT_BG=$'\033[49m'
_KUBE_PS1_DEFAULT_FG=$'\033[39m'
PROMPT_COMMAND="_kube_ps1_update_cache;${PROMPT_COMMAND:-:}"
PROMPT_COMMAND="${PROMPT_COMMAND:-:};_kube_ps1_update_cache"
;;
esac
}
Expand Down

0 comments on commit 953c7b2

Please sign in to comment.