git completions installed
This commit is contained in:
parent
6678a31ae7
commit
8855304904
7 changed files with 474 additions and 1 deletions
10
.config/fish/functions/git_develop_branch.fish
Normal file
10
.config/fish/functions/git_develop_branch.fish
Normal file
|
@ -0,0 +1,10 @@
|
|||
function git_develop_branch -d 'Detect name of develop branch of current git repository'
|
||||
command git rev-parse --git-dir &>/dev/null || return
|
||||
for branch in dev devel development
|
||||
if command git show-ref -q --verify refs/heads/$branch
|
||||
echo $branch
|
||||
return
|
||||
end
|
||||
end
|
||||
echo develop
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue