From bc961c97505ae4e181d7499b6db212f563f8b036 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Mon, 11 Dec 2023 09:53:15 +0100 Subject: feat: move aliases to functions, because they are often less troublesome --- .zsh_aliases | 16 ---------------- 1 file changed, 16 deletions(-) (limited to '.zsh_aliases') diff --git a/.zsh_aliases b/.zsh_aliases index fb70484..ca165ad 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -43,24 +43,8 @@ alias ip='ip -brief -color=auto' alias ls='ls --color=auto -b' alias mv='mv -i' -alias qmpv='mpv -ao null' -alias hw1mpv='mpv --ao=alsa:device=[hw:1,0] --audio-format s32' - alias dus='du -s * | sort -n' -alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg" - -alias diary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/$(date +%F).otl' -alias dreamdiary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/dreams_$(date +%F).otl' -alias positivediary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/positive_$(date +%F).otl' -alias dramalog='e Data/henksfiles/workinprogress/Dokumente/Beziehung/dramalog.otl' -alias jdiary='vim ~/Data/henksfiles/workinprogress/Dokumente/jdiary/$(date +%F).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