From 140beca6afe10f1899596c9a3cb437408a557055 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sat, 31 May 2014 00:02:01 +0300 Subject: [PATCH] bashrc & zshrc: add aliases isodate & isodateu. They show date in ISO 8601 format. --- bashrc | 4 ++++ zshrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bashrc b/bashrc index 5482f59f..7bc66ed5 100644 --- a/bashrc +++ b/bashrc @@ -531,6 +531,10 @@ alias reset-lxpanel="rm -rf ~/.config/lxpanel;lxpanelctl restart" alias reset-xfce4="rm -rf ~/.config/xfce4" 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 . # .aliases diff --git a/zshrc b/zshrc index f8b0d4c2..ea0635c1 100644 --- a/zshrc +++ b/zshrc @@ -500,6 +500,10 @@ alias reset-lxpanel="rm -rf ~/.config/lxpanel;lxpanelctl restart" alias reset-xfce4="rm -rf ~/.config/xfce4" 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 if [ -f ~/.aliases ]; then source ~/.aliases