mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
reworked git plugin alias
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
6fa7ade8a9
commit
e135ddfb1d
3 changed files with 15 additions and 14 deletions
|
|
@ -253,7 +253,8 @@ compdef _git gke='gitk'
|
|||
|
||||
# Clean
|
||||
# Remove all .orig, .BASE.*, .REMOTE.*, .LOCAL.*, *.BACKUP files
|
||||
alias gclean=" find . -name '*.orig' -or -name '*.REMOTE.*' -or -name '*.LOCAL.*' -or -name '*.BACKUP.*' -or -name '*.BASE.*' | xargs -r rm -v"
|
||||
alias gclean="find $(git rev-parse --show-toplevel) -name '*.orig' -or -name '*.REMOTE.*' -or -name '*.LOCAL.*' -or -name '*.BACKUP.*' -or -name '*.BASE.*' | xargs -r rm -v"
|
||||
alias gcleanreset='(cd $(git rev-parse --show-toplevel) && git reset --hard && git clean -dfx)'
|
||||
|
||||
# Edit global Git configuration files
|
||||
alias gitconfig="vim ~/.gitconfig"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue