Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Editors
- export VISUAL=vim
- export EDITOR="$VISUAL"
- # git
- git() {
- if [[ $@ == "branch" ]]; then
- command git branch -vv
- elif [[ $@ == "remote" ]]; then
- command git remote -vv
- elif [[ $@ == "fetch" ]]; then
- command git fetch --all --prune
- elif [[ $@ == "log" ]]; then
- command git log --graph --all --decorate --format=format:'%C(bold cyan)%h%C(reset) %C(bold green)(%ar)%C(reset) %C(bold magenta)%an%C(reset) %C(bold red)%d%C(reset) %n%C(white)%s%C(reset)%n'
- else
- command git "$@"
- fi
- }
Add Comment
Please, Sign In to add comment