Skip to content

Commit

Permalink
Simplify bash prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
necolas committed Nov 22, 2017
1 parent fccfc5b commit 2935f52
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions shell/bash_prompt
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,8 @@ set_prompts() {
PS1="\[\033]0;\w\007\]"

PS1+="\n" # newline
PS1+="\[$userStyle\]\u" # username
PS1+="\[$reset$white\]@"
PS1+="\[$hostStyle\]\h" # host
PS1+="\[$reset$white\]: "
PS1+="\[$green\]\w" # working directory
PS1+="\$(prompt_git \"$white on $cyan\")" # git repository details
PS1+="\$(prompt_git \"$reset on $white\")" # git repository details
PS1+="\n"
PS1+="\[$reset$white\]\$ \[$reset\]" # $ (and reset color)

Expand Down

0 comments on commit 2935f52

Please sign in to comment.