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.

47 lines
1.2 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. alias gchom="git checkout master"
  23. # Aliases }}}
  24. # Functions {{{
  25. gcho() { git checkout $1 ; }
  26. gcln() { git clone $1 ; }
  27. gremotes() {
  28. git remote set-url --add --push origin $1
  29. git remote set-url --add --push origin $2
  30. }
  31. gmrgr() {
  32. # 1 = remote name, 2 = remote path
  33. git remote add $1 $2
  34. git fetch $1
  35. # whichever branch you want to merge
  36. git merge --allow-unrelated-histories $1/master
  37. git remote remove $1
  38. }
  39. gunc() { git update-index --assume-unchanged $1 ; }
  40. gpla() {
  41. cmds="lc snp 9r sch"
  42. for cmd in $cmds; do
  43. eval $cmd && gst && gpl && gstp && gclear
  44. done
  45. }
  46. # Functions }}}