Added the gmaster, gmain, gshow, gdiff

This commit is contained in:
Marcin Woźniak 2023-03-25 13:02:46 +01:00
parent f9fa2b3ea6
commit 378c74b37b
Signed by: y0rune
GPG Key ID: F204C385F57EB348

6
.zshrc
View File

@ -189,7 +189,8 @@ alias myip="curl ipinfo.io/ip"
alias changefont="figlet" alias changefont="figlet"
# Git # Git
alias gmaster="git checkout master" alias gmaster="git checkout master; git checkout main"
alias gmain="git checkout master; git checkout main"
alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s" alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s"
alias gcommitw="git commit --author='Marcin Wozniak <marcin.wozniak@wundermanthompson.com>'" alias gcommitw="git commit --author='Marcin Wozniak <marcin.wozniak@wundermanthompson.com>'"
alias gdel="git push origin --delete" alias gdel="git push origin --delete"
@ -199,8 +200,9 @@ alias gpull="git fetch -p -q; git pull; git submodule foreach git pull origin ma
alias gpu="git fetch -p -q; git pull; git submodule foreach git pull origin master -q; git submodule foreach git pull origin main -q; git submodule status" alias gpu="git fetch -p -q; git pull; git submodule foreach git pull origin master -q; git submodule foreach git pull origin main -q; git submodule status"
alias gch="git checkout" alias gch="git checkout"
alias gst="git status -s" alias gst="git status -s"
alias gdiff="git diff | cat" alias gdiff="git --no-pager diff"
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 gshow="git show --color --pretty=format:%b"
# Others # Others
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"' alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'