Browse Source

bash: новый псевдоним для date, позволяющий указать параметры

master
Maxim Likhachev 11 years ago
parent
commit
577d8becb9
  1. 8
      etc/shell/bash/aliases

8
etc/shell/bash/aliases

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/bash ####################################################################
#
# Изменён: Сб 12 апр 2014 11:17:39
# Изменён: Вс 13 апр 2014 12:47:33
# Изменён: Чт. 10 апр. 2014 10:35:05
#
################################################################################
@ -32,7 +32,6 @@ alias du='du -hs' #noindex @@ -32,7 +32,6 @@ alias du='du -hs' #noindex
alias free="free -m" #noindex
alias wget='wget -c -T 5' #noindex
alias ps="ps -aux" #noindex
alias date="command date '+%A, %B %e %Y %H:%M:%S'" #noindex
alias grep='grep -E -i' #noindex
alias tree="tree -CAFa" #noindex
alias crontab_i="crontab $CRON" #noindex
@ -115,6 +114,11 @@ command_not_found_handle() { #noindex @@ -115,6 +114,11 @@ command_not_found_handle() { #noindex
fi
}
#- Дата
function date() { #noindex
command date ${*:-'+%A, %d %B %Y, %H:%M'}
}
#- Список функций и псевдонимов
:h() {
printf "$white

Loading…
Cancel
Save