Added gfg to script not in the zshrc

This commit is contained in:
Marcin Woźniak 2021-10-17 14:32:13 +02:00
parent e0c7cad5cf
commit ceb24b0216
Signed by: y0rune
GPG Key ID: F204C385F57EB348
2 changed files with 3 additions and 1 deletions

3
.local/bin/gfg Executable file
View File

@ -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"

1
.zshrc
View File

@ -89,7 +89,6 @@ alias gst="git status -s"
alias gdiff="git diff" alias gdiff="git diff"
alias gnew="git checkout -b" 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 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 cal="cal -3"
alias code="vscodium-bin" alias code="vscodium-bin"
alias vpn="sudo /root/.local/bin/protonvpn c -f" alias vpn="sudo /root/.local/bin/protonvpn c -f"