mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
refactor(git): move gbcopy to Functions section, update git-dir check and sync README
This commit is contained in:
parent
b01ea71086
commit
854caf0228
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ function git_main_branch() {
|
|||
|
||||
function gbcopy() {
|
||||
# Check if we are in a Git repository
|
||||
command git rev-parse --is-inside-work-tree &>/dev/null || return
|
||||
command git rev-parse --git-dir &>/dev/null || return
|
||||
|
||||
local branch
|
||||
branch="$(command git symbolic-ref --short -q HEAD)" || return
|
||||
|
|
|
|||
Loading…
Reference in a new issue