diff --git a/.local/bin/gfg b/.local/bin/gfg new file mode 100755 index 0000000..b090566 --- /dev/null +++ b/.local/bin/gfg @@ -0,0 +1,3 @@ +#!/bin/bash +BRANCH_GIT=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') +git checkout "$BRANCH_GIT" && git fetch upstream && git pull upstream "$BRANCH_GIT" diff --git a/.zshrc b/.zshrc index 8a7aab7..c775308 100644 --- a/.zshrc +++ b/.zshrc @@ -89,7 +89,6 @@ 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 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"