From: Sergey Matveev Date: Wed, 2 Nov 2022 11:00:24 +0000 (+0300) Subject: Move argumentless aliases to lazy functions X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=af4e9b27e95c8e9a0af8223885148e167ac3a659 Move argumentless aliases to lazy functions --- diff --git a/zsh/.zsh/functions/Gam b/zsh/.zsh/functions/Gam new file mode 100644 index 0000000..6cf98f0 --- /dev/null +++ b/zsh/.zsh/functions/Gam @@ -0,0 +1 @@ +git commit --amend diff --git a/zsh/.zsh/functions/Gbr b/zsh/.zsh/functions/Gbr new file mode 100644 index 0000000..00038bf --- /dev/null +++ b/zsh/.zsh/functions/Gbr @@ -0,0 +1 @@ +git branch --remote diff --git a/zsh/.zsh/functions/Gm b/zsh/.zsh/functions/Gm new file mode 100644 index 0000000..5929b13 --- /dev/null +++ b/zsh/.zsh/functions/Gm @@ -0,0 +1 @@ +git diff --name-only --diff-filter=M --relative diff --git a/zsh/.zsh/functions/Gr b/zsh/.zsh/functions/Gr new file mode 100644 index 0000000..82b33ce --- /dev/null +++ b/zsh/.zsh/functions/Gr @@ -0,0 +1 @@ +git remote -v diff --git a/zsh/.zsh/functions/arr b/zsh/.zsh/functions/arr new file mode 100644 index 0000000..edd8267 --- /dev/null +++ b/zsh/.zsh/functions/arr @@ -0,0 +1 @@ +mutt -f =arbeit -e "source ~/.mutt/accounts/arbeit" diff --git a/zsh/.zsh/rc/010git.zsh b/zsh/.zsh/rc/010git.zsh index 43333c6..eed04e4 100644 --- a/zsh/.zsh/rc/010git.zsh +++ b/zsh/.zsh/rc/010git.zsh @@ -1,15 +1,10 @@ alias Ga="git add" alias Gb="git branch" -alias Gbr="git branch --remote" alias Gc="git checkout" alias Gd="git diff" alias Gdc="git diff --cached" alias Gs="git show --show-signature" -alias Gm="git diff --name-only --diff-filter=M --relative" -alias Gam="git commit --amend" 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" 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 50f8984..b68d234 100644 --- a/zsh/.zsh/rc/010mail.zsh +++ b/zsh/.zsh/rc/010mail.zsh @@ -2,6 +2,5 @@ mailpath=( ~/mail/mbox/new"?Neue Nachrichten in =mbox" ~/mail/arbeit/new"?Neue Nachrichten in =arbeit" ) -alias arr="mutt -f =arbeit -e 'source ~/.mutt/accounts/arbeit'" export MUHOME=~/.mu bindkey -s "OP" " inc\n" # F1