]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
feat: move aliases to functions, because they are often less troublesome
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Mon, 11 Dec 2023 08:53:15 +0000 (09:53 +0100)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Mon, 11 Dec 2023 08:53:15 +0000 (09:53 +0100)
.zsh_aliases
.zsh_functions/alert [new file with mode: 0644]
.zsh_functions/diary [new file with mode: 0644]
.zsh_functions/dquilt [new file with mode: 0644]
.zsh_functions/dramalog [new file with mode: 0644]
.zsh_functions/dreamdiary [new file with mode: 0644]
.zsh_functions/hnjs_scan_a4 [new file with mode: 0644]
.zsh_functions/jdiary [new file with mode: 0644]
.zsh_functions/positivediary [new file with mode: 0644]
.zsh_functions/tiga [new file with mode: 0644]

index fb70484b57def881d25581487fbaa0fe7af975e2..ca165adc3cfbe7814da56bbc4d9fd9f361569ddd 100644 (file)
@@ -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<DateTimeOriginal" -d 00_test_sorted/%Y/%m/%d -r'
 
 alias ta='task'
diff --git a/.zsh_functions/alert b/.zsh_functions/alert
new file mode 100644 (file)
index 0000000..1f3c065
--- /dev/null
@@ -0,0 +1 @@
+notify-send --urgency=low -i ${(%):-%(?.terminal.error)} ${history[$HISTCMD]%[;&|][[:space:]]##alert}
diff --git a/.zsh_functions/diary b/.zsh_functions/diary
new file mode 100644 (file)
index 0000000..fcd41ed
--- /dev/null
@@ -0,0 +1,2 @@
+vim ~/Data/personal/henk/workinprogress/Dokumente/diary/$(date +%F).otl
+
diff --git a/.zsh_functions/dquilt b/.zsh_functions/dquilt
new file mode 100644 (file)
index 0000000..af53b6b
--- /dev/null
@@ -0,0 +1 @@
+quilt --quiltrc=${HOME}/.quiltrc-dpkg
diff --git a/.zsh_functions/dramalog b/.zsh_functions/dramalog
new file mode 100644 (file)
index 0000000..e5e0362
--- /dev/null
@@ -0,0 +1 @@
+vim Data/personal/henk/workinprogress/Dokumente/Beziehung/dramalog.otl
diff --git a/.zsh_functions/dreamdiary b/.zsh_functions/dreamdiary
new file mode 100644 (file)
index 0000000..c812f6c
--- /dev/null
@@ -0,0 +1 @@
+vim ~/Data/personal/henk/workinprogress/Dokumente/diary/dreams_$(date +%F).otl
diff --git a/.zsh_functions/hnjs_scan_a4 b/.zsh_functions/hnjs_scan_a4
new file mode 100644 (file)
index 0000000..df19ba7
--- /dev/null
@@ -0,0 +1 @@
+scanimage --format=png --resolution=150 -x 208.1 -y 295.5 --progress $@
diff --git a/.zsh_functions/jdiary b/.zsh_functions/jdiary
new file mode 100644 (file)
index 0000000..e02ea85
--- /dev/null
@@ -0,0 +1,2 @@
+vim ~/Data/personal/henk/workinprogress/Dokumente/jdiary/"$(date +%F ${*:+--date="$*"})".otl
+
diff --git a/.zsh_functions/positivediary b/.zsh_functions/positivediary
new file mode 100644 (file)
index 0000000..edf8783
--- /dev/null
@@ -0,0 +1 @@
+vim ~/Data/personal/henk/workinprogress/Dokumente/diary/positive_$(date +%F).otl
diff --git a/.zsh_functions/tiga b/.zsh_functions/tiga
new file mode 100644 (file)
index 0000000..1a504d8
--- /dev/null
@@ -0,0 +1 @@
+tig --all