From e16d6f2640001937556a4606253747e78ae98b70 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 25 Oct 2012 20:02:51 +0900 Subject: [PATCH] update scr --- bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index df5bc85..577cf27 100755 --- a/bashrc +++ b/bashrc @@ -210,7 +210,7 @@ fi alias setup.py="sudo python3 setup.py install --record files.txt" scr(){ - _tformat="%Y-%m-%dT%H:%M:%S%z" + _tformat="%Y%m%d-%H%M%S%z" _file=`date +${_tformat}`.script SCRIPT=${_file} script ${_file} "$@" } @@ -569,7 +569,7 @@ ip-address(){ __my_ps1_script(){ local last=$? - test -n "$SCRIPT" && echo "SCR " + test -n "$SCRIPT" && echo "${__my_c5}SCR${__my_cdef} " return $last } __my_ps1_scale(){ @@ -635,6 +635,7 @@ then elif test "`hostname`" = newkiwi; then __my_c4="\[\e[1;35m\]" else __my_c4="\[\e[1;32m\]" # color for :: fi + __my_c5="\[\e[30;47m\]" # color for SCR __my_cdef="\[\e[0m\]" fi _PS1="\