Просмотр исходного кода

enter to exit in clk

pull/1/head
10sr 12 лет назад
Родитель
Сommit
f634dc3590
1 измененных файлов: 5 добавлений и 2 удалений
  1. +5
    -2
      bashrc

+ 5
- 2
bashrc Просмотреть файл

@@ -282,10 +282,13 @@ ssh(){
clk(){ clk(){
local tformat="%Y/%m/%d %H:%M:%S %z" local tformat="%Y/%m/%d %H:%M:%S %z"
cal cal
while true
REPLY=
printf "\\r`date "+${tformat}"`"
read -t 1
while test $? -ne 0
do do
printf "\\r`date "+${tformat}"`" printf "\\r`date "+${tformat}"`"
sleep 1
read -t 1
done done
} }




Загрузка…
Отмена
Сохранить