xonecas.io
2780
D2

dotfiles-2014 / commit c373fa1

>.>

Sean2016-04-19 c373fa1f87f9c174263651555c9c34783b68d158 parent 607c23b

1 file changed

bashrc+11−6
@@ -158,9 +158,14 @@ function __node {
158158
159159 function __info {
160160 local full=(
161- $(hostname)
162161 $(__virtualenv)
163162 $(__node)
163+ )
164+ full="${full[*]}"
165+ [ "$full" != "" ] && echo "$full"
166+}
167+function __gitinfo {
168+ local full=(
164169 $(__git_branch)
165170 $(__git_dirty)
166171 )
@@ -170,9 +175,9 @@ function __info {
170175
171176 COLOR1=$(tput setaf 4)
172177 COLOR2=$(tput setaf 2)
173-COLOR3=$(tput setaf 5)
178+COLOR3=$(tput setaf 3)
174179 CLEAR=$(tput sgr0)
175-#PS1="$COLOR3[$COLOR2\$(__info)$COLOR3] $COLOR1☠ $COLOR3($COLOR2\w$COLOR3) \$(tput setaf 7)"
176-LINE1="\[$COLOR1\]┌─\[$COLOR3\][\[$COLOR2\]\$(__info)\[$COLOR3\]]\[$COLOR1\]──\[$COLOR3\](\[$COLOR2\]\w\[$COLOR3\])\n"
177-LINE2="\[$COLOR1\]└─> \[$COLOR3\]✭ \[\$CLEAR\]"
178-PS1="$LINE1$LINE2"
180+
181+LINE="\[\$COLOR1\]on \[$COLOR2\]$(hostname) \[\$COLOR1\]at \[$COLOR2\]\w \[\$COLOR1\]in \[$COLOR2\]$(__gitinfo) \[\$COLOR1\]using \[$COLOR2\]$(__info) \[$COLOR3\]✭ \[\$CLEAR\]"
182+
183+PS1="$LINE"