File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ source ~/bin/git-completion.bash
4141
4242export GIT_PS1_SHOWDIRTYSTATE=1
4343
44- # Define the prompt
45- PS1=' \[\033[00;35m\][\A] ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;38m\]\w\[\033[00m\]$(__git_ps1 " (%s)")\n\$ '
46-
4744# If this is an xterm set the title to user@host:dir
4845case " $TERM " in
4946xterm* |rxvt* )
@@ -144,18 +141,22 @@ else
144141 esac
145142fi
146143
144+ SUFFIX=" "
147145if [ " $SESSION_TYPE " != " local" ]; then
148- PS1 =" ${PS1 ::- 2} [\033[01;31m\] (ssh session)\[\033[00m\]$ " ;
146+ SUFFIX =" ${SUFFIX} (ssh session)" ;
149147fi
150148
151149if [ -n " $STY " ]; then
152- PS1 =" ${PS1 ::- 2} [\033[01;34m\] (screen)\[\033[00m\]$ " ;
150+ SUFFIX =" ${SUFFIX} (screen)" ;
153151fi
154152
155153if [ -n " $TMUX " ]; then
156- PS1 =" ${PS1 ::- 2} [\033[01;36m\] (tmux)\[\033[00m\]$ " ;
154+ SUFFIX =" ${SUFFIX} (tmux)" ;
157155fi
158156
157+ # Define the prompt
158+ PS1=' \[\033[00;35m\][\A] ${debian_chroot:+($debian_chroot)} \[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;31m\]${SUFFIX}\[\033[00m\]:\[\033[01;38m\]\w\[\033[00m\]$(__git_ps1 " (%s)")\n\$ '
159+
159160# Ruby in the path
160161if which ruby > /dev/null && which gem > /dev/null; then
161162 PATH=" $( ruby -rubygems -e ' puts Gem.user_dir' ) /bin:$PATH "
You can’t perform that action at this time.
0 commit comments