bashrc & zshrc: add aliases isodate & isodateu.
They show date in ISO 8601 format.
This commit is contained in:
parent
885447efe8
commit
140beca6af
4
bashrc
4
bashrc
|
@ -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
4
zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue