From ffb177044ad99fbed588e8aa83811d34282a794e Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sat, 5 Sep 2020 15:54:12 +0300 Subject: [PATCH] [zsh] add a couple github-specific alises --- zsh/aliases.zsh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 798c212..e3ad922 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -37,9 +37,17 @@ if command_exists fd; then alias fda='fd --hidden --no-ignore' fi +# some amendments to Oh My Zsh's git plugin +# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh +alias glo="git log --decorate --abbrev-commit --date=relative --pretty='%C(auto)%h%C(reset)%C(auto)%d%C(reset) %s %C(green)- %an %C(blue)(%ad)%C(reset)'" +alias glog='glo --graph' +alias gloga='glog --all' + # git with hub if command_exists hub; then alias git='hub' + alias gw='git browse' + alias gci='git ci-status --verbose' fi # make these utils more verbose @@ -76,10 +84,4 @@ if [[ "$EDITOR" == *vim ]]; then fi alias sue="sudo --edit" -# some amendments to Oh My Zsh's git plugin -# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh -alias glo="git log --decorate --abbrev-commit --date=relative --pretty='%C(auto)%h%C(reset)%C(auto)%d%C(reset) %s %C(green)- %an %C(blue)(%ad)%C(reset)'" -alias glog='glo --graph' -alias gloga='glog --all' - alias rsync-backup='rsync --archive --compress --verbose --human-readable --partial --progress'