bashrc & zshrc: add aliases isodate & isodateu.

They show date in ISO 8601 format.
This commit is contained in:
Mikaela Suomalainen 2014-05-31 00:02:01 +03:00
parent 885447efe8
commit 140beca6af
2 changed files with 8 additions and 0 deletions

4
bashrc
View File

@ -531,6 +531,10 @@ alias reset-lxpanel="rm -rf ~/.config/lxpanel;lxpanelctl restart"
alias reset-xfce4="rm -rf ~/.config/xfce4" alias reset-xfce4="rm -rf ~/.config/xfce4"
alias reset-matepanel="mate-panel --reset" alias reset-matepanel="mate-panel --reset"
# Show date in ISO 8601 format
alias isodate='date "+%Y-%m-%d %H:%M:%S%z"'
alias isodateu='date -u "+%Y-%m-%d %H:%M:%S%z"'
# Allow custom aliases to be put in .aliases or .bash_aliases . # Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases # .aliases

4
zshrc
View File

@ -500,6 +500,10 @@ alias reset-lxpanel="rm -rf ~/.config/lxpanel;lxpanelctl restart"
alias reset-xfce4="rm -rf ~/.config/xfce4" alias reset-xfce4="rm -rf ~/.config/xfce4"
alias reset-matepanel="mate-panel --reset" alias reset-matepanel="mate-panel --reset"
# Show date in ISO 8601 format
alias isodate='date "+%Y-%m-%d %H:%M:%S%z"'
alias isodateu='date -u "+%Y-%m-%d %H:%M:%S%z"'
# .aliases # .aliases
if [ -f ~/.aliases ]; then if [ -f ~/.aliases ]; then
source ~/.aliases source ~/.aliases