ソースを参照

add func clock

pull/1/head
10sr 11年前
コミット
08806316cc
1個のファイルの変更16行の追加3行の削除
  1. +16
    -3
      bashrc

+ 16
- 3
bashrc ファイルの表示

@@ -248,7 +248,20 @@ fi

alias setup.py="sudo python3 setup.py install --record files.txt"

man() {
clock(){
(
local tformat="%Y/%m/%d %H:%M:%S %z"
local t=
while true
do
t="`date "+${tformat}"`"
printf "\\r$t"
sleep 1
done
)
}

man(){
env \
LESS_TERMCAP_mb=$(printf "\e[1;35m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
@@ -261,8 +274,8 @@ man() {
}

scr(){
_tformat="%Y%m%d-%H%M%S%z"
_file=`date +${_tformat}`.script
local _tformat="%Y%m%d-%H%M%S%z"
local _file=`date +${_tformat}`.script
SCRIPT=${_file} script ${_file} "$@"
}



読み込み中…
キャンセル
保存