Browse Source

update scr

pull/1/head
10sr 12 years ago
parent
commit
e16d6f2640
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      bashrc

+ 3
- 2
bashrc View File

@@ -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="\


Loading…
Cancel
Save