mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge b65a84b79e into eafd5f3252
This commit is contained in:
commit
f998bf99af
1 changed files with 6 additions and 2 deletions
|
|
@ -148,8 +148,12 @@ function work_in_progress() {
|
|||
echo "WIP!!"
|
||||
fi
|
||||
}
|
||||
# these alias commit and uncomit wip branches
|
||||
alias gwip='git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m "--wip--"'
|
||||
|
||||
# these aliases commit and uncommit wip branches
|
||||
# first though, check xargs flavor for -r flag
|
||||
echo | xargs -r &>/dev/null && XARGS_OPTS="-r"
|
||||
alias gwip="git add -A; git ls-files --deleted -z | xargs ${XARGS_OPTS} -0 git rm; git commit -m \"--wip--\""
|
||||
unset XARGS_OPTS
|
||||
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
|
||||
|
||||
# these alias ignore changes to file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue