From ab1722b413ec7d70013e20bc8c22613b2f326d8b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 30 Jan 2013 18:55:18 +0900 Subject: [PATCH] change darwin color --- bashrc | 14 ++++++++++++-- tmux.conf.pl | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index 7ca0a9b..2efd0c3 100755 --- a/bashrc +++ b/bashrc @@ -685,16 +685,19 @@ ip-address(){ test -n "$ip" && printf $1 $ip } + __my_ps1_script(){ local last=$? test -n "$SCRIPT" && echo "${__my_c5}SCR${__my_cdef} " return $last } + __my_ps1_scale(){ local last=$? printf "${LINES}x${COLUMNS}" return $last } + __my_ps1_tmux(){ local last=$? null type tmux || return $last @@ -702,11 +705,13 @@ __my_ps1_tmux(){ test -n "$TMUX" && echo "[TMUX:$tmuxc]" return $last } + __my_ps1_moc(){ local last=$? __my_moc_state "[MOC:%s]" return $last } + for f in /usr/share/git/git-prompt.sh \ /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh do @@ -721,11 +726,13 @@ __my_ps1_git(){ __git_ps1 "[GIT:$(__try_exec git config --get user.name):%s]" return $last } + __my_ps1_ipaddr(){ local last=$? ! iswindows && ip-address [Addr:%s] return $last } + __my_ps1_bttry(){ local last=$? local bst="${TMP}/batterystatus" @@ -738,19 +745,22 @@ __my_ps1_bttry(){ fi return $last } + __my_ps1_dirs(){ dirs | wc -l } + __my_ps1_jobs(){ jobs | wc -l } + if test "$TERM" != dumb then - __my_c1="\[\e[1;31m\]" # color for PWD + __my_c1="\[\e[0;33m\]" # color for PWD __my_c2="\[\e[0;36m\]" # color for user __my_c3="\[\e[1;30m\]" # color for OLDPWD if test "`hostname`" = arch-aspireone; then __my_c4="\[\e[1;34m\]" - elif test "`hostname`" = darwin-mba.local; then __my_c4="\[\e[1;33m\]" + elif test "`hostname`" = darwin-mba.local; then __my_c4="\[\e[1;31m\]" elif test "`hostname`" = newkiwi; then __my_c4="\[\e[1;35m\]" else __my_c4="\[\e[1;32m\]" # color for :: fi diff --git a/tmux.conf.pl b/tmux.conf.pl index 4c3e920..06beb4e 100755 --- a/tmux.conf.pl +++ b/tmux.conf.pl @@ -9,7 +9,7 @@ my @tmux_setw_command = ("setw", "-g"); my %color_prefs = ( "arch-aspireone" => "blue,white", - "darwin-mba.local" => "yellow,black", + "darwin-mba.local" => "red,white", "newkiwi" => "magenta,white" ); my $color_def = "green,white";