From ceb24b02168ebf764666e76beecdcb599b52e58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 17 Oct 2021 14:32:13 +0200 Subject: [PATCH] Added gfg to script not in the zshrc --- .local/bin/gfg | 3 +++ .zshrc | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 .local/bin/gfg 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"