]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Move argumentless aliases to lazy functions
authorSergey Matveev <stargrave@stargrave.org>
Wed, 2 Nov 2022 11:00:24 +0000 (14:00 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 2 Nov 2022 11:00:24 +0000 (14:00 +0300)
zsh/.zsh/functions/Gam [new file with mode: 0644]
zsh/.zsh/functions/Gbr [new file with mode: 0644]
zsh/.zsh/functions/Gm [new file with mode: 0644]
zsh/.zsh/functions/Gr [new file with mode: 0644]
zsh/.zsh/functions/arr [new file with mode: 0644]
zsh/.zsh/rc/010git.zsh
zsh/.zsh/rc/010mail.zsh

diff --git a/zsh/.zsh/functions/Gam b/zsh/.zsh/functions/Gam
new file mode 100644 (file)
index 0000000..6cf98f0
--- /dev/null
@@ -0,0 +1 @@
+git commit --amend
diff --git a/zsh/.zsh/functions/Gbr b/zsh/.zsh/functions/Gbr
new file mode 100644 (file)
index 0000000..00038bf
--- /dev/null
@@ -0,0 +1 @@
+git branch --remote
diff --git a/zsh/.zsh/functions/Gm b/zsh/.zsh/functions/Gm
new file mode 100644 (file)
index 0000000..5929b13
--- /dev/null
@@ -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 (file)
index 0000000..82b33ce
--- /dev/null
@@ -0,0 +1 @@
+git remote -v
diff --git a/zsh/.zsh/functions/arr b/zsh/.zsh/functions/arr
new file mode 100644 (file)
index 0000000..edd8267
--- /dev/null
@@ -0,0 +1 @@
+mutt -f =arbeit -e "source ~/.mutt/accounts/arbeit"
index 43333c68865274e117db3e678dbc0c49483d9ec7..eed04e4acfa7dfd2d1813489cffcdb25d20a6b3e 100644 (file)
@@ -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 "\eOR" " git status --short\n" # F3
-export TOG_COLORS=1
index 50f8984d01820e94309d0f8de9ea31063ccbb0ac..b68d234f6939a8e0928974c8d5814af048c0b39f 100644 (file)
@@ -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 "\eOP" " inc\n" # F1