.bash_aliases 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. alias ..='cd ..'
  2. alias ...='cd ../..'
  3. alias ....='cd ../../..'
  4. alias .....='cd ../../../..'
  5. alias ......='cd ../../../../..'
  6. alias 1='cd -'
  7. alias 2='cd -2'
  8. alias 3='cd -3'
  9. alias 4='cd -4'
  10. alias 5='cd -5'
  11. alias 6='cd -6'
  12. alias 7='cd -7'
  13. alias 8='cd -8'
  14. alias 9='cd -9'
  15. alias _=sudo
  16. alias afind='ack -il'
  17. alias c=composer
  18. alias ccp='composer create-project'
  19. alias cdu='composer dump-autoload'
  20. alias cget='curl -s https://getcomposer.org/installer | php'
  21. alias cgr='composer global require'
  22. alias cgu='composer global update'
  23. alias ci='composer install'
  24. alias cr='composer require'
  25. alias csu='composer self-update'
  26. alias cu='composer update'
  27. alias d='dirs -v | head -10'
  28. alias g=git
  29. alias ga='git add'
  30. alias gaa='git add --all'
  31. alias gapa='git add --patch'
  32. alias gb='git branch'
  33. alias gba='git branch -a'
  34. alias gbd='git branch -d'
  35. alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
  36. alias gbl='git blame -b -w'
  37. alias gbnm='git branch --no-merged'
  38. alias gbr='git branch --remote'
  39. alias gbs='git bisect'
  40. alias gbsb='git bisect bad'
  41. alias gbsg='git bisect good'
  42. alias gbsr='git bisect reset'
  43. alias gbss='git bisect start'
  44. alias gc='git commit -v'
  45. alias 'gc!'='git commit -v --amend'
  46. alias gca='git commit -v -a'
  47. alias 'gca!'='git commit -v -a --amend'
  48. alias gcam='git commit -a -m'
  49. alias 'gcan!'='git commit -v -a --no-edit --amend'
  50. alias 'gcans!'='git commit -v -a -s --no-edit --amend'
  51. alias gcb='git checkout -b'
  52. alias gcd='git checkout develop'
  53. alias gcf='git config --list'
  54. alias gcl='git clone --recursive'
  55. alias gclean='git clean -fd'
  56. alias gcm='git checkout master'
  57. alias gcmsg='git commit -m'
  58. alias 'gcn!'='git commit -v --no-edit --amend'
  59. alias gco='git checkout'
  60. alias gcount='git shortlog -sn'
  61. alias gcp='git cherry-pick'
  62. alias gcpa='git cherry-pick --abort'
  63. alias gcpc='git cherry-pick --continue'
  64. alias gcs='git commit -S'
  65. alias gcsm='git commit -s -m'
  66. alias gd='git diff'
  67. alias gdca='git diff --cached'
  68. alias gdct='git describe --tags `git rev-list --tags --max-count=1`'
  69. alias gdt='git diff-tree --no-commit-id --name-only -r'
  70. alias gdw='git diff --word-diff'
  71. alias gf='git fetch'
  72. alias gfa='git fetch --all --prune'
  73. alias gfo='git fetch origin'
  74. alias gg='git gui citool'
  75. alias gga='git gui citool --amend'
  76. alias ggpull='git pull origin $(git_current_branch)'
  77. alias ggpur=ggu
  78. alias ggpush='git push origin $(git_current_branch)'
  79. alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
  80. alias ghh='git help'
  81. alias gignore='git update-index --assume-unchanged'
  82. alias gignored='git ls-files -v | grep "^[[:lower:]]"'
  83. alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
  84. alias gk='\gitk --all --branches'
  85. alias gke='\gitk --all $(git log -g --pretty=%h)'
  86. alias gl='git pull'
  87. alias glg='git log --stat'
  88. alias glgg='git log --graph'
  89. alias glgga='git log --graph --decorate --all'
  90. alias glgm='git log --graph --max-count=10'
  91. alias glgp='git log --stat -p'
  92. alias glo='git log --oneline --decorate'
  93. alias glog='git log --oneline --decorate --graph'
  94. alias gloga='git log --oneline --decorate --graph --all'
  95. alias glol='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit'
  96. alias glola='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --all'
  97. alias glp=_git_log_prettily
  98. alias glum='git pull upstream master'
  99. alias gm='git merge'
  100. alias gmom='git merge origin/master'
  101. alias gmt='git mergetool --no-prompt'
  102. alias gmtvim='git mergetool --no-prompt --tool=vimdiff'
  103. alias gmum='git merge upstream/master'
  104. alias gp='git push'
  105. alias gpd='git push --dry-run'
  106. alias gpoat='git push origin --all && git push origin --tags'
  107. alias gpristine='git reset --hard && git clean -dfx'
  108. alias gpsup='git push --set-upstream origin $(git_current_branch)'
  109. alias gpu='git push upstream'
  110. alias gpv='git push -v'
  111. alias gr='git remote'
  112. alias gra='git remote add'
  113. alias grb='git rebase'
  114. alias grba='git rebase --abort'
  115. alias grbc='git rebase --continue'
  116. alias grbi='git rebase -i'
  117. alias grbm='git rebase master'
  118. alias grbs='git rebase --skip'
  119. alias grep='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
  120. alias grh='git reset HEAD'
  121. alias grhh='git reset HEAD --hard'
  122. alias grmv='git remote rename'
  123. alias grrm='git remote remove'
  124. alias grset='git remote set-url'
  125. alias grt='cd $(git rev-parse --show-toplevel || echo ".")'
  126. alias gru='git reset --'
  127. alias grup='git remote update'
  128. alias grv='git remote -v'
  129. alias gsb='git status -sb'
  130. alias gsd='git svn dcommit'
  131. alias gsi='git submodule init'
  132. alias gsps='git show --pretty=short --show-signature'
  133. alias gsr='git svn rebase'
  134. alias gss='git status -s'
  135. alias gst='git status'
  136. alias gsta='git stash save'
  137. alias gstaa='git stash apply'
  138. alias gstc='git stash clear'
  139. alias gstd='git stash drop'
  140. alias gstl='git stash list'
  141. alias gstp='git stash pop'
  142. alias gsts='git stash show --text'
  143. alias gsu='git submodule update'
  144. alias gts='git tag -s'
  145. alias gtv='git tag | sort -V'
  146. alias gunignore='git update-index --no-assume-unchanged'
  147. alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
  148. alias gup='git pull --rebase'
  149. alias gupv='git pull --rebase -v'
  150. alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
  151. alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip--"'
  152. alias history='fc -l 1'
  153. alias l='ls -lah'
  154. alias la='ls -lAh'
  155. alias ll='ls -lh'
  156. alias ls='ls --color=tty'
  157. alias lsa='ls -lah'
  158. alias md='mkdir -p'
  159. alias please=sudo
  160. alias po=popd
  161. alias pu=pushd
  162. alias rd=rmdir
  163. alias rip=exit
  164. alias which-command=whence
  165. alias cowtune="fortune|cowsay"
  166. alias owl='php /home/ben/.owl/bin/owl.php'