mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-07-03 05:31:17 +02:00
Merge 0002238f40 into ff2f16e8df
This commit is contained in:
commit
0bc9be5ec7
1 changed files with 10 additions and 0 deletions
|
|
@ -68,6 +68,16 @@ function grename() {
|
||||||
# (sorted alphabetically by function name)
|
# (sorted alphabetically by function name)
|
||||||
# (order should follow README)
|
# (order should follow README)
|
||||||
#
|
#
|
||||||
|
function gcbn() {
|
||||||
|
# Check if we are in a Git repository
|
||||||
|
command git rev-parse --is-inside-work-tree &>/dev/null || return
|
||||||
|
|
||||||
|
local branch
|
||||||
|
branch="$(git_current_branch)" || return
|
||||||
|
[[ -n "$branch" ]] || return 1
|
||||||
|
|
||||||
|
print -rn -- "$branch" | clipcopy
|
||||||
|
}
|
||||||
|
|
||||||
# Similar to `gunwip` but recursive "Unwips" all recent `--wip--` commits not just the last one
|
# Similar to `gunwip` but recursive "Unwips" all recent `--wip--` commits not just the last one
|
||||||
function gunwipall() {
|
function gunwipall() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue