summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2023-12-11 09:53:15 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-12-11 09:53:15 +0100
commitbc961c97505ae4e181d7499b6db212f563f8b036 (patch)
tree020e73b43ed9ade8c365cbf09c01bbd9032cd7d2
parent463a12f5f35ff8c2d89eb4370569bd7323abd16b (diff)
feat: move aliases to functions, because they are often less troublesome
-rw-r--r--.zsh_aliases16
-rw-r--r--.zsh_functions/alert1
-rw-r--r--.zsh_functions/diary2
-rw-r--r--.zsh_functions/dquilt1
-rw-r--r--.zsh_functions/dramalog1
-rw-r--r--.zsh_functions/dreamdiary1
-rw-r--r--.zsh_functions/hnjs_scan_a41
-rw-r--r--.zsh_functions/jdiary2
-rw-r--r--.zsh_functions/positivediary1
-rw-r--r--.zsh_functions/tiga1
10 files changed, 11 insertions, 16 deletions
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<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
index 0000000..1f3c065
--- /dev/null
+++ b/.zsh_functions/alert
@@ -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
index 0000000..fcd41ed
--- /dev/null
+++ b/.zsh_functions/diary
@@ -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
index 0000000..af53b6b
--- /dev/null
+++ b/.zsh_functions/dquilt
@@ -0,0 +1 @@
+quilt --quiltrc=${HOME}/.quiltrc-dpkg
diff --git a/.zsh_functions/dramalog b/.zsh_functions/dramalog
new file mode 100644
index 0000000..e5e0362
--- /dev/null
+++ b/.zsh_functions/dramalog
@@ -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
index 0000000..c812f6c
--- /dev/null
+++ b/.zsh_functions/dreamdiary
@@ -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
index 0000000..df19ba7
--- /dev/null
+++ b/.zsh_functions/hnjs_scan_a4
@@ -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
index 0000000..e02ea85
--- /dev/null
+++ b/.zsh_functions/jdiary
@@ -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
index 0000000..edf8783
--- /dev/null
+++ b/.zsh_functions/positivediary
@@ -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
index 0000000..1a504d8
--- /dev/null
+++ b/.zsh_functions/tiga
@@ -0,0 +1 @@
+tig --all