Guest User

Untitled

a guest
Jan 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # Editors
  2. export VISUAL=vim
  3. export EDITOR="$VISUAL"
  4.  
  5. # git
  6. git() {
  7. if [[ $@ == "branch" ]]; then
  8. command git branch -vv
  9. elif [[ $@ == "remote" ]]; then
  10. command git remote -vv
  11. elif [[ $@ == "fetch" ]]; then
  12. command git fetch --all --prune
  13. elif [[ $@ == "log" ]]; then
  14. 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'
  15. else
  16. command git "$@"
  17. fi
  18. }
Add Comment
Please, Sign In to add comment