Advertisement
v1ral_ITS

collection of my aliases

Sep 2nd, 2018
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.59 KB | None | 0 0
  1. -='cd -'
  2. ..='cd ..; \ls'
  3. ...=../..
  4. ....=../../..
  5. .....=../../../..
  6. ......=../../../../..
  7. 1='cd -'
  8. 2='cd -2'
  9. 3='cd -3'
  10. 4='cd -4'
  11. 5='cd -5'
  12. 6='cd -6'
  13. 7='cd -7'
  14. 8='cd -8'
  15. 9='cd -9'
  16. _=sudo
  17. a=alias
  18. aac='sudo $apt_pref autoclean'
  19. abd='sudo $apt_pref build-dep'
  20. ac='sudo $apt_pref clean'
  21. acs='apt-cache search'
  22. ad='sudo $apt_pref update'
  23. addnote='\echo -e "\n`date`\nNOTE: `yad --width 900 --height 325 --title "Add Notes" --entry`" >> ~/.notes; cat ~/.notes'
  24. adg='sudo $apt_pref update && sudo $apt_pref $apt_upgr'
  25. ads='sudo apt-get dselect-upgrade'
  26. adu='sudo $apt_pref update && sudo $apt_pref dist-upgrade'
  27. afind='ack -il'
  28. afs='apt-file search --regexp'
  29. afu='sudo apt-file update'
  30. age=apt-get
  31. ai='sudo $apt_pref install'
  32. ail='sed -e '\''s/  */ /g'\'' -e '\''s/ *//'\'' | cut -s -d '\'' '\'' -f 1 |  xargs sudo $apt_pref install'
  33. alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
  34. allpkgs='aptitude search -F "%p" --disable-columns ~i'
  35. ap='sudo $apt_pref purge'
  36. api=aptitude
  37. app='apt-cache policy'
  38. aps='aptitude search'
  39. aptg=aptg1
  40. ar='sudo $apt_pref remove'
  41. as=$'aptitude -F "* %p -> %d \\n(%v/%V)" \t\t--no-gui --disable-columns search'
  42. asrc='apt-get source'
  43. au='sudo $apt_pref $apt_upgr'
  44. az=aptg
  45. bmu=bookmarkurl
  46. c=clear
  47. calc=gnome-calculator
  48. catgui='yad --text-info --editable --width 500 --height 150 --textbox $(\ls | please yad --text-info --editable --width 500 --height 150 --list --column "Choose File To Cat") 512 286'
  49. cd='clear; cd $*'
  50. cfp='cf "$(clippaste)"'
  51. cfpc='cfp | clipcopy'
  52. clipc=clipcopy
  53. clipp=clippaste
  54. cp='cp -gR -r -u -v'
  55. czf=tarcz
  56. d='dirs -v | head -10'
  57. di='sudo dpkg -i'
  58. dia='sudo dpkg -i ./*.deb'
  59. edit='featherpad $*'
  60. fullup=updupg
  61. g=git
  62. ga='git add'
  63. gaa='git add --all'
  64. gap='git apply'
  65. gapa='git add --patch'
  66. gau='git add --update'
  67. gav='git add --verbose'
  68. gb='git branch'
  69. gba='git branch -a'
  70. gbd='git branch -d'
  71. gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
  72. gbl='git blame -b -w'
  73. gbnm='git branch --no-merged'
  74. gbr='git branch --remote'
  75. gbs='git bisect'
  76. gbsb='git bisect bad'
  77. gbsg='git bisect good'
  78. gbsr='git bisect reset'
  79. gbss='git bisect start'
  80. gc='git commit -v'
  81. 'gc!'='git commit -v --amend'
  82. gca='git commit -v -a'
  83. 'gca!'='git commit -v -a --amend'
  84. gcam='git commit -a -m'
  85. 'gcan!'='git commit -v -a --no-edit --amend'
  86. 'gcans!'='git commit -v -a -s --no-edit --amend'
  87. gcb='git checkout -b'
  88. gcd='git checkout develop'
  89. gcf='git config --list'
  90. gcl='git clone --recursive'
  91. gclean='git clean -fd'
  92. gcm='git checkout master'
  93. gcmsg='git commit -m'
  94. 'gcn!'='git commit -v --no-edit --amend'
  95. gco='git checkout'
  96. gcount='git shortlog -sn'
  97. gcp='git cherry-pick'
  98. gcpa='git cherry-pick --abort'
  99. gcpc='git cherry-pick --continue'
  100. gcs='git commit -S'
  101. gcsm='git commit -s -m'
  102. gd='git diff'
  103. gdca='git diff --cached'
  104. gdct='git describe --tags `git rev-list --tags --max-count=1`'
  105. gdcw='git diff --cached --word-diff'
  106. gdl='drive download "$(yad --text-info --editable --width 500 --height 150 --title "Copy/Paste Items ID" --inputbox "File/Directorys")"'
  107. gdlir='drive download --recursive "$(yad --text-info --editable --width 500 --height 150 --title "Copy/Paste Items ID #" --inputbox "File/Directorys ID")"'
  108. gds='git diff --staged'
  109. gdt='git diff-tree --no-commit-id --name-only -r'
  110. gdw='git diff --word-diff'
  111. gf='git fetch'
  112. gfa='git fetch --all --prune'
  113. gfo='git fetch origin'
  114. gg='git gui citool'
  115. gga='git gui citool --amend'
  116. ggpull='git pull origin $(git_current_branch)'
  117. ggpur=ggu
  118. ggpush='git push origin $(git_current_branch)'
  119. ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
  120. ghh='git help'
  121. gignore='git update-index --assume-unchanged'
  122. gignored='git \ls-files -v | grep "^[[:lower:]]"'
  123. git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
  124. gk='\gitk --all --branches'
  125. gke='\gitk --all $(git log -g --pretty=%h)'
  126. gl='git pull'
  127. glg='git log --stat'
  128. glgg='git log --graph'
  129. glgga='git log --graph --decorate --all'
  130. glgm='git log --graph --max-count=10'
  131. glgp='git log --stat -p'
  132. glo='git log --oneline --decorate'
  133. globurl='noglob urlglobber '
  134. glod='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'\'
  135. glods='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'\'' --date=short'
  136. glog='git log --oneline --decorate --graph'
  137. gloga='git log --oneline --decorate --graph --all'
  138. glol='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'
  139. glola='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --all'
  140. glp=_git_log_prettily
  141. glum='git pull upstream master'
  142. gm='git merge'
  143. gma='git merge --abort'
  144. gmom='git merge origin/master'
  145. gmt='git mergetool --no-prompt'
  146. gmtvim='git mergetool --no-prompt --tool=vimdiff'
  147. gmum='git merge upstream/master'
  148. gp='git push'
  149. gpd='git push --dry-run'
  150. gpoat='git push origin --all && git push origin --tags'
  151. gpristine='git reset --hard && git clean -dfx'
  152. gpsup='git push --set-upstream origin $(git_current_branch)'
  153. gpu='git push upstream'
  154. gpv='git push -v'
  155. gr='git remote'
  156. gra='git remote add'
  157. grb='git rebase'
  158. grba='git rebase --abort'
  159. grbc='git rebase --continue'
  160. grbd='git rebase develop'
  161. grbi='git rebase -i'
  162. grbm='git rebase master'
  163. grbs='git rebase --skip'
  164. grep='grep  --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
  165. grh='git reset'
  166. grhh='git reset --hard'
  167. grmv='git remote rename'
  168. grrm='git remote remove'
  169. grset='git remote set-url'
  170. grt='cd $(git rev-parse --show-toplevel || echo ".")'
  171. gru='git reset --'
  172. grup='git remote update'
  173. grv='git remote -v'
  174. gsb='git status -sb'
  175. gsd='git svn dcommit'
  176. gsh='git show'
  177. gsi='git submodule init'
  178. gsps='git show --pretty=short --show-signature'
  179. gsr='git svn rebase'
  180. gss='git status -s'
  181. gst='git status'
  182. gsta='git stash save'
  183. gstaa='git stash apply'
  184. gstc='git stash clear'
  185. gstd='git stash drop'
  186. gstl='git stash list'
  187. gstp='git stash pop'
  188. gsts='git stash show --text'
  189. gsu='git submodule update'
  190. gts='git tag -s'
  191. gtv='git tag | sort -V'
  192. gunignore='git update-index --no-assume-unchanged'
  193. gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
  194. gup='drive upload $(\ls | yad --text-info --editable --width 500 --height 150 --list --column "Choose File To Upload")'
  195. gupdir='drive upload --recursive $(yad --text-info --editable --width 500 --height 150 --getexistingdirectory /)'
  196. gupv='git pull --rebase -v'
  197. gwch='git whatchanged -p --abbrev-commit --pretty=medium'
  198. gwi=gwenview_importer
  199. gwip='git add -A; git rm $(git \ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"'
  200. gwv=gwenview
  201. h='cd $HOME'
  202. history=omz_history
  203. hsi='hs -i'
  204. ifc=ifconfig
  205. itplay='mplayer $*'
  206. kclean=$'sudo aptitude remove -P ?and(~i~nlinux-(ima|hea) \\\n        ?not(~n`uname -r`))'
  207. l='\ls -lah'
  208. la='\ls -lAh'
  209. lime='/opt/sublime_text/sublime_text $*'
  210. ll='\ls -lh'
  211. ls='\clear; \ls --color=always$*'
  212. lsa='\ls -lah'
  213. m='cd $MHOME'
  214. md='mkdir -p'
  215. mv='mv -g'
  216. mvp='mpv --no-audio "$(yad --text-info --editable --width 500 --height 150 --title "Choose Folder" --getexistingdirectory /)"'
  217. mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
  218. newb=new_bash
  219. nmp='mpv --no-video "$(yad --text-info --editable --width 500 --height 150 --title "Choose Folder" --getexistingdirectory /)"'
  220. p=ps1_options
  221. please=sudo
  222. pv='pv -tpeba'
  223. rd=rmdir
  224. rm='rm -rf'
  225. smp='smplayer $(yad --text-info --editable --width 500 --height 150 --title "Choose Directory For play-list; " --getexistingdirectory / )'
  226. unz='unzip *.zip'
  227. which-command=whence
  228. wspace='sudo bash /home/v1ral/bin/whitespace'
  229. x=exit
  230. xed='featherpad $*'
  231. ytv=youtube-viewer
  232. zshrc='mousepad $HOME/.zshrc'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement