Переглянути джерело

enter to exit in clk

pull/1/head
10sr 11 роки тому
джерело
коміт
f634dc3590
1 змінених файлів з 5 додано та 2 видалено
  1. +5
    -2
      bashrc

+ 5
- 2
bashrc Переглянути файл

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



Завантаження…
Відмінити
Зберегти