1
0
mirror of https://github.com/DazAh/dotfiles synced 2026-05-21 18:25:46 +01:00

upgradeohmyzsh

This commit is contained in:
DazAh
2020-12-13 21:56:15 +00:00
parent d70caf476c
commit d997f114fa
52 changed files with 2509 additions and 1831 deletions
@@ -31,11 +31,15 @@ function work_in_progress() {
# Check if main exists and use instead of master
function git_main_branch() {
if [[ -n "$(git branch --list main)" ]]; then
echo main
else
echo master
fi
command git rev-parse --git-dir &>/dev/null || return
local branch
for branch in main trunk; do
if command git show-ref -q --verify refs/heads/$branch; then
echo $branch
return
fi
done
echo master
}
#