aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-07-13 23:18:38 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-07-13 23:18:38 +0200
commitaa87b637f2bb00187b9bcdacfe3a6bd3c20834c8 (patch)
tree79e8b5c23d55a5950661efa5d14bea9de2251096
parent0939da9c333f277dcb4b5d11c20adeff80dd2d2b (diff)
downloaddotfiles-aa87b637f2bb00187b9bcdacfe3a6bd3c20834c8.tar.xz
zsh: aliases: Add tt alias
-rw-r--r--zsh/aliases.zsh6
1 files changed, 6 insertions, 0 deletions
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
+}