Parcourir la source

fix clock()

pull/1/head
10sr il y a 11 ans
Parent
révision
2c8a79e4da
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. +1
    -3
      bashrc

+ 1
- 3
bashrc Voir le fichier

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


Chargement…
Annuler
Enregistrer