mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
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-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
|
||||
|
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-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
|
||||
|
Loading…
Reference in New Issue
Block a user