X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.zsh_aliases;h=e353f7d1b1ff9569d60258ce182f4d23a68cb7ac;hb=5b12b5899af2f8ff7933a6ad6f8be9363a0e992b;hp=73bbead406f9840a60165bb96cf69398e963656a;hpb=6b5984db839e3cd454f02dfd2d4699f30c66913c;p=user%2Fhenk%2Fvcsh%2Fzsh.git 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