Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
c92af18c
Unverified
Commit
c92af18c
authored
Aug 24, 2023
by
Zhang Visper
Committed by
GitHub
Aug 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(git): some aliases under non-english LANG (#11855)
parent
33c0de7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
README.md
plugins/git/README.md
+3
-3
git.plugin.zsh
plugins/git/git.plugin.zsh
+3
-3
No files found.
plugins/git/README.md
View file @
c92af18c
...
...
@@ -40,12 +40,12 @@ plugins=(... git)
| gbd | git branch --delete |
| gbD | git branch --delete --force |
| gbda | git branch --no-color --merged
|
grep -vE "^(
[
+
]
|
\s($(git_main_branch)
|
$(git_develop_branch))
\s\*
$)"
|
xargs git branch --delete 2>/dev/null |
| gbgd |
git branch --no-color -vv
|
| gbgD |
git branch --no-color -vv
|
| gbgd |
LANG=C git branch --no-color -vv | grep ": gone
\]
" | awk '"'"'{print $1}'"'"' | xargs git branch -d
|
| gbgD |
LANG=C git branch --no-color -vv | grep ": gone
\]
" | awk '"'"'{print $1}'"'"' | xargs git branch -D
|
| gbnm | git branch --no-merged |
| gbr | git branch --remote |
| ggsup | git branch --set-upstream-to=origin/$(git_current_branch) |
| gbg |
git branch -vv
|
| gbg |
LANG=C git branch -vv | grep ": gone
\]
"
|
| gco | git checkout |
| gcor | git checkout --recurse-submodules |
| gcb | git checkout -b |
...
...
plugins/git/git.plugin.zsh
View file @
c92af18c
...
...
@@ -121,12 +121,12 @@ alias gba='git branch --all'
alias
gbd
=
'git branch --delete'
alias
gbD
=
'git branch --delete --force'
alias
gbda
=
'git branch --no-color --merged | command grep -vE "^([+*]|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs git branch --delete 2>/dev/null'
alias
gbgd
=
'git branch --no-color -vv | grep ": gone\]" | awk '
"'"
'{print $1}'
"'"
' | xargs git branch -d'
alias
gbgD
=
'git branch --no-color -vv | grep ": gone\]" | awk '
"'"
'{print $1}'
"'"
' | xargs git branch -D'
alias
gbgd
=
'
LANG=C
git branch --no-color -vv | grep ": gone\]" | awk '
"'"
'{print $1}'
"'"
' | xargs git branch -d'
alias
gbgD
=
'
LANG=C
git branch --no-color -vv | grep ": gone\]" | awk '
"'"
'{print $1}'
"'"
' | xargs git branch -D'
alias
gbnm
=
'git branch --no-merged'
alias
gbr
=
'git branch --remote'
alias
ggsup
=
'git branch --set-upstream-to=origin/$(git_current_branch)'
alias
gbg
=
'git branch -vv | grep ": gone\]"'
alias
gbg
=
'
LANG=C
git branch -vv | grep ": gone\]"'
alias
gco
=
'git checkout'
alias
gcor
=
'git checkout --recurse-submodules'
alias
gcb
=
'git checkout -b'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment