10sr 13 лет назад
Родитель
Сommit
08806316cc
1 измененных файлов: 16 добавлений и 3 удалений
  1. +16
    -3
      bashrc

+ 16
- 3
bashrc Просмотреть файл

@@ -248,7 +248,20 @@ fi


alias setup.py="sudo python3 setup.py install --record files.txt" alias setup.py="sudo python3 setup.py install --record files.txt"


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

man(){
env \ env \
LESS_TERMCAP_mb=$(printf "\e[1;35m") \ LESS_TERMCAP_mb=$(printf "\e[1;35m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \ LESS_TERMCAP_md=$(printf "\e[1;31m") \
@@ -261,8 +274,8 @@ man() {
} }


scr(){ scr(){
_tformat="%Y%m%d-%H%M%S%z"
_file=`date +${_tformat}`.script
local _tformat="%Y%m%d-%H%M%S%z"
local _file=`date +${_tformat}`.script
SCRIPT=${_file} script ${_file} "$@" SCRIPT=${_file} script ${_file} "$@"
} }




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