]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Lazy-loading functions
authorSergey Matveev <stargrave@stargrave.org>
Wed, 2 Nov 2022 10:01:34 +0000 (13:01 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 2 Nov 2022 10:01:34 +0000 (13:01 +0300)
zsh/.zsh/functions/Gg [new file with mode: 0644]
zsh/.zsh/functions/mbox [new file with mode: 0644]
zsh/.zsh/rc/010git.zsh
zsh/.zsh/rc/010mail.zsh

diff --git a/zsh/.zsh/functions/Gg b/zsh/.zsh/functions/Gg
new file mode 100644 (file)
index 0000000..8bd18b2
--- /dev/null
@@ -0,0 +1 @@
+git log -i --grep=$1
diff --git a/zsh/.zsh/functions/mbox b/zsh/.zsh/functions/mbox
new file mode 100644 (file)
index 0000000..85cf407
--- /dev/null
@@ -0,0 +1 @@
+mutt -f "=$1"
index bbbc8a7a173b0d81b5d403169ff0c1f98e1c47c1..43333c68865274e117db3e678dbc0c49483d9ec7 100644 (file)
@@ -11,11 +11,5 @@ alias Gl="git log --oneline --graph --decorate=short"
 alias Gld="git log --format=format:'%ai %Cgreen%h%Creset %s'"
 alias Gp="git log --patch"
 alias Gr="git remote -v"
-
-Gg() {
-    git log -i --grep=$1
-}
-
 bindkey -s "\eOR" " git status --short\n" # F3
-
 export TOG_COLORS=1
index d540469e8ca05cf7fdb552038d21f3e7da69fee3..50f8984d01820e94309d0f8de9ea31063ccbb0ac 100644 (file)
@@ -3,8 +3,5 @@ mailpath=(
     ~/mail/arbeit/new"?Neue Nachrichten in =arbeit"
 )
 alias arr="mutt -f =arbeit -e 'source ~/.mutt/accounts/arbeit'"
-mbox() {
-    mutt -f "=$1"
-}
 export MUHOME=~/.mu
 bindkey -s "\eOP" " inc\n" # F1