From 5b12b5899af2f8ff7933a6ad6f8be9363a0e992b Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Sat, 14 Aug 2021 15:21:52 +0200 Subject: Speed up startup --- .zsh_aliases | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.zsh_aliases') 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