zshrc: git add -u, but ignore whitespaces.
This commit is contained in:
parent
57b28ca26b
commit
5d7bc57ece
5
zshrc
5
zshrc
@ -3833,6 +3833,11 @@ alias xopen='xdg-open'
|
||||
# but holy cow who is the idiot who localizes programming tools?
|
||||
alias git='LANG=en_US.UTF-8 git'
|
||||
|
||||
# git add -u, but ignore whitespaces
|
||||
gitadduw() {
|
||||
git diff -U0 -w --no-color | git apply --cached --ignore-whitespace --unidiff-zero -
|
||||
}
|
||||
|
||||
## END OF FILE #################################################################
|
||||
# vim:filetype=zsh foldmethod=marker autoindent expandtab shiftwidth=4
|
||||
# Local variables:
|
||||
|
Loading…
Reference in New Issue
Block a user