Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

  1. # Aliases {{{
  2. # . ~/.secure
  3. alias gs="git status -u"
  4. alias gpl="git pull --rebase"
  5. alias grbc="git rebase --continue"
  6. alias gps="git push"
  7. alias vig="vi .gitignore"
  8. alias ga="git add -A * && gs"
  9. alias gac="git add -A *; git commit"
  10. alias gai="git add .gitignore"
  11. alias gd="git diff -w"
  12. alias gdc="git diff --cached"
  13. alias gstore="git config credential.helper store"
  14. gcm(){ git commit -m "$1" ; }
  15. alias gc="git commit"
  16. alias gl="git log"
  17. alias gsl="git shortlog"
  18. alias gst="git stash"
  19. alias gstp="git stash pop"
  20. alias gclear="git stash clear"
  21. alias egc="vim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
  22. # Aliases }}}
  23. # Functions {{{
  24. gcho() { git checkout $1 ; }
  25. gcln() { git clone $1 ; }
  26. gremotes() {
  27. git remote set-url --add --push origin $1
  28. git remote set-url --add --push origin $2
  29. }
  30. gmrgr() {
  31. # 1 = remote name, 2 = remote path
  32. git remote add $1 $2
  33. git fetch $1
  34. # whichever branch you want to merge
  35. git merge --allow-unrelated-histories $1/master
  36. git remote remove $1
  37. }
  38. gunc() { git update-index --assume-unchanged $1 ; }
  39. gpla() {
  40. cmds="lc snp 9r sch"
  41. for cmd in $cmds; do
  42. eval $cmd && gst && gpl && gstp && gclear
  43. done
  44. }
  45. # Functions }}}