Browse Source

fix clock()

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

+ 1
- 3
bashrc View File

@@ -250,12 +250,10 @@ alias setup.py="sudo python3 setup.py install --record files.txt"

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


Loading…
Cancel
Save