Skip to content

Commit

Permalink
Adding in ability to temporarily disable my awesome bash prompt via s…
Browse files Browse the repository at this point in the history
…etting simple_prompt=1.
  • Loading branch information
cowboy committed Feb 1, 2012
1 parent bc78211 commit 5ac79b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/50_prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function prompt_command() {
[[ "${prompt_stack[0]}" == "prompt_command" ]] && exit_code=0
prompt_stack=()

# While the simple_prompt environment var is set, disable the awesome prompt.
[[ "$simple_prompt" ]] && PS1='$ ' && return

prompt_getcolors
# http://twitter.com/cowboy/status/150254030654939137
PS1="\n"
Expand Down

0 comments on commit 5ac79b1

Please sign in to comment.