Added master and main checkout if it exists

This commit is contained in:
Marcin Woźniak 2021-10-06 10:42:23 +02:00
parent 1e3fb006db
commit 085d100f8c
Signed by: y0rune
GPG Key ID: F204C385F57EB348

2
.zshrc
View File

@ -89,7 +89,7 @@ alias gst="git status -s"
alias gdiff="git diff"
alias gnew="git checkout -b"
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches"
alias gfg="git checkout master && git fetch upstream && git pull upstream master"
alias gfg="(git checkout master; git checkout main) && git fetch upstream && git pull upstream master"
alias cal="cal -3"
alias code="vscodium-bin"
alias vpn="sudo /root/.local/bin/protonvpn c -f"