From 78716fa8cef7abde890553de358537ecae7874d6 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 19 Sep 2024 09:49:59 +0300 Subject: [PATCH] feat(config): few handy date aliases --- config/alias | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/alias b/config/alias index b72ea63..6a4d820 100755 --- a/config/alias +++ b/config/alias @@ -52,6 +52,11 @@ alias flush="dscacheutil -flushcache" # Update locatedb alias updatedb="sudo /usr/libexec/locate.updatedb" +# Date helpers +alias isodate="date +'%Y-%m-%d'" +alias x-datetime="date +'%Y-%m-%d %H:%M:%S'" +alias x-timestamp="date +'%s'" + # tmux: automatically attach or create session with name 'main' alias tm='command tmux new-session -A -s main' # tmux: attach or create new session