Add -p option in gfc alias

This commit is contained in:
Talia 2023-06-27 08:51:53 +02:00
parent e0ca89a34b
commit de38454b56

View file

@ -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'