some aliases

This commit is contained in:
Jean-Marie RENOUARD 2021-05-03 10:12:00 +00:00
parent 76c9343fb9
commit 85d5015a1d

View file

@ -19,9 +19,10 @@ alias grs='git reset --soft HEAD~1'
alias grh='git reset --hard HEAD~1'
alias serve="python -m $(python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
gunt() {
git status | \
grep -vE '( to publish your local commits|git add|git restore|On branch|Your branch|Untracked files|nclude in what will b|but untracked files present|no changes added to commit|modified:|deleted:|Changes not staged for commit)' |\
grep -vE '(Changes to be committed:| to publish your local commits|git add|git restore|On branch|Your branch|Untracked files|nclude in what will b|but untracked files present|no changes added to commit|modified:|deleted:|Changes not staged for commit)' |\
sort | uniq | \
xargs -n 1 $*
}