aboutsummaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-26 20:04:40 +0200
committerMattias Andrée <maandree@kth.se>2021-06-26 20:04:40 +0200
commitd0c754055ddfcc56feae567b16b9044baada1386 (patch)
tree8d8e21d00daaa3e512c5e21d6e0c805ba212b409 /git
parentAdd the wrappers c, dmenu, mplayer, st, and aur (diff)
downloaddotfiles-d0c754055ddfcc56feae567b16b9044baada1386.tar.gz
dotfiles-d0c754055ddfcc56feae567b16b9044baada1386.tar.bz2
dotfiles-d0c754055ddfcc56feae567b16b9044baada1386.tar.xz
Add e, ge, decrypt, encrypt, and encrypt-nosign
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--git/Makefile4
-rwxr-xr-xgit/ge8
2 files changed, 12 insertions, 0 deletions
diff --git a/git/Makefile b/git/Makefile
index 3f9f161..13c3740 100644
--- a/git/Makefile
+++ b/git/Makefile
@@ -7,11 +7,15 @@ install:
mkdir -p -- ~/.config/bash/aliases.d
test ! -d ~/.config/bash/aliases.d/git
ln -sf -- ~/.dotfiles/git/bash-aliases ~/.config/bash/aliases.d/git
+ $(CHECK_INSTALLED) dash
+ mkdir -p -- ~/.local/bin
+ ln -sf -- ~/.dotfiles/git/ge ~/.local/bin/
uninstall:
-unlink -- ~/.config/git/config
-rmdir -- ~/.config/git
-unlink -- ~/.config/bash/aliases.d/git
-rmdir -- ~/.config/bash/aliases.d
+ -unlink -- ~/.local/bin/ge
.PHONY: install uninstall
diff --git a/git/ge b/git/ge
new file mode 100755
index 0000000..4c703e0
--- /dev/null
+++ b/git/ge
@@ -0,0 +1,8 @@
+#!/bin/dash
+
+e "$@"
+git add -- "$@"
+
+if test -f "$(git home)/.git/autosave"; then
+ exec git commit -m 'Autosave'
+fi