From aa87b637f2bb00187b9bcdacfe3a6bd3c20834c8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 13 Jul 2015 23:18:38 +0200 Subject: zsh: aliases: Add tt alias --- zsh/aliases.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index ba1793b..0546ce4 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -128,3 +128,9 @@ aur-pull() { git pull aur@aur4.archlinux.org:/"$1".git master:"$1" git checkout "$old_branch" } + +tt() { + if [[ -n "$@" ]]; then + print "$@" | ts '[%Y-%m-%d %H:%M:%S]' >> "$HOME"/documents/timetracking + fi +} -- cgit v1.2.3-70-g09d2