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