mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] add a couple github-specific alises
This commit is contained in:
parent
5f07e06fa7
commit
ffb177044a
1 changed files with 8 additions and 6 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue