summaryrefslogtreecommitdiff
path: root/.zsh_aliases
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2021-08-14 15:21:52 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2021-08-14 16:21:50 +0200
commit5b12b5899af2f8ff7933a6ad6f8be9363a0e992b (patch)
treebdc80cb572989cb5078e6776a591871472e8d76f /.zsh_aliases
parent6b5984db839e3cd454f02dfd2d4699f30c66913c (diff)
Speed up startup
Diffstat (limited to '.zsh_aliases')
-rw-r--r--.zsh_aliases5
1 files changed, 5 insertions, 0 deletions
diff --git a/.zsh_aliases b/.zsh_aliases
index 73bbead..e353f7d 100644
--- a/.zsh_aliases
+++ b/.zsh_aliases
@@ -52,6 +52,11 @@ alias dreamdiary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/dreams_$(
alias positivediary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/positive_$(date +%F).otl'
alias dramalog='e Data/henksfiles/workinprogress/Dokumente/Beziehung/dramalog.otl'
+#alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
+function alert() {
+ notify-send --urgency=low -i ${(%):-%(?.terminal.error)} ${history[$HISTCMD]%[;&|][[:space:]]##alert}
+}
+
alias datesortimages='exiftool "-Directory<DateTimeOriginal" -d 00_test_sorted/%Y/%m/%d -r'
alias ta='task'