浏览代码

fix clock()

pull/1/head
10sr 11 年前
父节点
当前提交
2c8a79e4da
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      bashrc

+ 1
- 3
bashrc 查看文件

@@ -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
}


正在加载...
取消
保存