feat: add flags to .local/bin/dot
-ca = commit -a -rb = rebase -rbi = rebase -i
This commit is contained in:
parent
e4539c77f9
commit
6d890c08be
@ -9,6 +9,7 @@ cmd="$git status" ## by default, give the status
|
|||||||
|
|
||||||
[ "$1" = "-l" ] && shift && cmd="$git log"
|
[ "$1" = "-l" ] && shift && cmd="$git log"
|
||||||
[ "$1" = "-c" ] && shift && cmd="$git commit $@"
|
[ "$1" = "-c" ] && shift && cmd="$git commit $@"
|
||||||
|
[ "$1" = "-ca" ] && shift && cmd="$git commit -a"
|
||||||
[ "$1" = "-cas" ] && shift && cmd="$git commit -S --amend $1"
|
[ "$1" = "-cas" ] && shift && cmd="$git commit -S --amend $1"
|
||||||
[ "$1" = "-ch" ] && shift && cmd="$git checkout $1"
|
[ "$1" = "-ch" ] && shift && cmd="$git checkout $1"
|
||||||
[ "$1" = "-mv" ] && shift && cmd="$git mv $@"
|
[ "$1" = "-mv" ] && shift && cmd="$git mv $@"
|
||||||
@ -16,7 +17,8 @@ cmd="$git status" ## by default, give the status
|
|||||||
[ "$1" = "-pl" ] && shift && cmd="$git pull"
|
[ "$1" = "-pl" ] && shift && cmd="$git pull"
|
||||||
[ "$1" = "-a" ] && shift && cmd="$git add $@"
|
[ "$1" = "-a" ] && shift && cmd="$git add $@"
|
||||||
[ "$1" = "-rm" ] && shift && cmd="$git rm --cached $@"
|
[ "$1" = "-rm" ] && shift && cmd="$git rm --cached $@"
|
||||||
[ "$1" = "-rb" ] && shift && cmd="$git rebase -i $1"
|
[ "$1" = "-rb" ] && shift && cmd="$git rebase $@"
|
||||||
|
[ "$1" = "-rbi" ] && shift && cmd="$git rebase -i $1"
|
||||||
[ "$1" = "-rs" ] && shift && cmd="$git reset --soft $1"
|
[ "$1" = "-rs" ] && shift && cmd="$git reset --soft $1"
|
||||||
[ "$1" = "-d" ] && shift && cmd="$git diff $@"
|
[ "$1" = "-d" ] && shift && cmd="$git diff $@"
|
||||||
if [ "$1" = "-m" ] ; then
|
if [ "$1" = "-m" ] ; then
|
||||||
|
Reference in New Issue
Block a user