mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
Adds shortdate function
This commit is contained in:
7
zsh/config/functions/shortdate
Executable file
7
zsh/config/functions/shortdate
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# Formats the date as '23.10.12'.
|
||||
|
||||
function shortdate() {
|
||||
echo "$(date '+%Y.%m.%d' | cut -c3-)"
|
||||
}
|
||||
Reference in New Issue
Block a user