From bbe1f90666d0383fcbe698f2b16f3e32dc0b8624 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 2 Nov 2022 13:01:34 +0300 Subject: [PATCH] Lazy-loading functions --- zsh/.zsh/functions/Gg | 1 + zsh/.zsh/functions/mbox | 1 + zsh/.zsh/rc/010git.zsh | 6 ------ zsh/.zsh/rc/010mail.zsh | 3 --- 4 files changed, 2 insertions(+), 9 deletions(-) create mode 100644 zsh/.zsh/functions/Gg create mode 100644 zsh/.zsh/functions/mbox diff --git a/zsh/.zsh/functions/Gg b/zsh/.zsh/functions/Gg new file mode 100644 index 0000000..8bd18b2 --- /dev/null +++ b/zsh/.zsh/functions/Gg @@ -0,0 +1 @@ +git log -i --grep=$1 diff --git a/zsh/.zsh/functions/mbox b/zsh/.zsh/functions/mbox new file mode 100644 index 0000000..85cf407 --- /dev/null +++ b/zsh/.zsh/functions/mbox @@ -0,0 +1 @@ +mutt -f "=$1" diff --git a/zsh/.zsh/rc/010git.zsh b/zsh/.zsh/rc/010git.zsh index bbbc8a7..43333c6 100644 --- a/zsh/.zsh/rc/010git.zsh +++ b/zsh/.zsh/rc/010git.zsh @@ -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 "OR" " git status --short\n" # F3 - export TOG_COLORS=1 diff --git a/zsh/.zsh/rc/010mail.zsh b/zsh/.zsh/rc/010mail.zsh index d540469..50f8984 100644 --- a/zsh/.zsh/rc/010mail.zsh +++ b/zsh/.zsh/rc/010mail.zsh @@ -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 "OP" " inc\n" # F1 -- 2.44.0