@@ -165,11 +165,7 @@ function __info {
165165 [ "$full" != "" ] && echo "$full"
166166 }
167167 function __gitinfo {
168- local full=(
169- $(__git_branch)
170- $(__git_dirty)
171- )
172- full="${full[*]}"
168+ full="$(__git_branch)$(__git_dirty)"
173169 [ "$full" != "" ] && echo "$full"
174170 }
175171
@@ -178,6 +174,4 @@ COLOR2=$(tput setaf 2)
178174 COLOR3=$(tput setaf 3)
179175 CLEAR=$(tput sgr0)
180176
181-LINE="\[\$COLOR1\]on \[$COLOR2\]$(hostname) \[\$COLOR1\]at \[$COLOR2\]\w \[\$COLOR1\]in \[$COLOR2\]$(__gitinfo) \[\$COLOR1\]using \[$COLOR2\]$(__info) \[$COLOR3\]✭ \[\$CLEAR\]"
182-
183-PS1="$LINE"
177+PS1="\[\$COLOR1\]on \[$COLOR2\]$(hostname) \[\$COLOR1\]at \[$COLOR2\]\w \[\$COLOR1\]in \[$COLOR2\]$(__gitinfo) \[\$COLOR1\]using \[$COLOR2\]$(__info) \[$COLOR3\]✭ \[\$CLEAR\]"