Add -p option in gfc alias
This commit is contained in:
parent
e0ca89a34b
commit
de38454b56
1 changed files with 13 additions and 1 deletions
14
shell/alias
14
shell/alias
|
@ -1,4 +1,3 @@
|
|||
alias gfc='git fadd && git commit'
|
||||
alias amend='git commit --amend'
|
||||
alias bat="batcat"
|
||||
alias co='checkout'
|
||||
|
@ -25,6 +24,19 @@ pp() {
|
|||
cd $(find-git-project $HOME/workspace "$@")
|
||||
}
|
||||
|
||||
gfc() {
|
||||
while test $# != 0
|
||||
do
|
||||
case "$1" in
|
||||
--patch | -p) patch="--patch" ;;
|
||||
--) shift; break ;;
|
||||
*) break ;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
git fadd $patch && git commit $@
|
||||
}
|
||||
|
||||
# Funny
|
||||
alias please='sudo'
|
||||
alias qed='[ $RANDOM -ge $((32767 / 100 * 10)) ] && echo Quod Erat Demonstrandum || echo Quo Errat Demonstrator'
|
||||
|
|
Loading…
Reference in a new issue