diff options
Diffstat (limited to '')
-rw-r--r-- | git/Makefile | 4 | ||||
-rwxr-xr-x | git/ge | 8 |
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 @@ -0,0 +1,8 @@ +#!/bin/dash + +e "$@" +git add -- "$@" + +if test -f "$(git home)/.git/autosave"; then + exec git commit -m 'Autosave' +fi |