custom-alias 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. alias ls='ls --color=auto'
  2. alias zq='zathura $HOME/kit/pdf/Quran/Quran.pdf &'
  3. alias du='du -h'
  4. alias youtube='google-chrome-stable --app=https://youtube.com'
  5. alias colorize='toilet --gay -f term $@'
  6. alias xquery='xdg-mime query filetype $1'
  7. alias c='xclip-copyfile'
  8. alias p='xclip-pastefile'
  9. alias d='xclip-cutfile'
  10. alias awr="awesome-client 'awesome.restart()'"
  11. alias z='zathura $1'
  12. alias cpwd='pwd | tr -d "\n" | xsel -ib'
  13. alias info='info --vi-keys'
  14. alias vac='$EDITOR $HOME/.new_vimrc'
  15. alias tmp='mkdir /tmp/$$ ; cd /tmp/$$'
  16. alias thumbs='sxiv -atrq "$@"'
  17. alias untmp='rm -rf /tmp/$$'
  18. alias dox='cd ~/dos'
  19. alias ipp='curl ipinfo.io/ip'
  20. alias ta='\tmux a -t'
  21. alias ncm='ncmpcpp 2>/dev/null'
  22. alias gr='grep -r'
  23. alias grep='grep --color=auto'
  24. alias egrep='egrep --color=auto'
  25. alias un='$EDITOR /home/ak/lab/notes/shell/zsh'
  26. alias ipy='ipython3'
  27. alias tmux='tmux has-session -t $USER || tmux new-session -s $USER && tmux -2 attach-session -t $USER'
  28. alias sc='systemctl --user'
  29. alias py='python3'
  30. alias cdw='cd ~/git/dwm; ls'
  31. #alias pyc='export _JAVA_AWT_WM_NONREPARENTING=1 ; $HOME/bin/pycharm/bin/pycharm.sh $1'
  32. alias cdc='cd $HOME/cfg'
  33. alias chkill="ps ux | grep '[C]hrome --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill"
  34. alias pak='cd $HOME/git/ports/ak'
  35. alias psgrep='ps aux | grep $(echo $1 | sed "s/^\(.\)/[\1]/g")'
  36. alias tkill='\tmux kill-session -a'
  37. alias vte='$EDITOR ~/.config/termite/config'
  38. alias pgs='prt-get search'
  39. alias pt='sudo prt-get'
  40. alias pgf='prt-get fsearch'
  41. alias pgi='sudo prt-get install'
  42. alias ltd='ls *(m0)' # files and dirs modified in the last day
  43. alias lt='ls *(.m0)' # files modified in last day (no dirs)
  44. alias lnew='ls *(.om[1,3])' # list three newest
  45. alias lsrdir='ls -d *(/om[1])'
  46. alias lh='ls -d .*' # only hidden files
  47. alias pa='sudo pkgadd'
  48. alias ytvid='youtube-dl --restrict-filenames -o "~/mus/vid/%(title)s_%(width)sx%(height)s_%(upload_date)s.%(ext)s"'
  49. alias ytaudio='youtube-dl --restrict-filenames --extract-audio -o "~/mus/%(title)s_%(width)sx%(height)s_%(upload_date)s.%(ext)s"'
  50. alias sit='cd ~/git/mysite/'
  51. alias mutr='mutt -F ~/.config/mutt/muttrc-redchan'
  52. alias reboot='sudo reboot'
  53. alias api='sudo apt install --yes -V'
  54. alias aps='apt search $1'
  55. alias spy='lsof -i -P +c 0 +M'
  56. alias netlist='lsof -i -P | grep LISTEN'
  57. alias apg='sudo apt purge -V'
  58. #alias mk='vim $HOME/lab/notes/python/learnPython'
  59. alias mutg='mutt -F ~/.config/mutt/muttrc4superak'
  60. alias xq='xbps-query'
  61. alias xi='sudo xbps-install'
  62. alias xr='sudo xbps-remove'
  63. alias vx='$EDITOR ~/.Xresources'
  64. alias vg='$EDITOR ~/.config/git/config'
  65. alias vmc='$EDITOR ~/.config/vim/init.vim'
  66. alias fst='sudo $EDITOR /etc/fstab'
  67. #alias u="urxvt -pixmap '`find ~/pix/wall/ -name '*.jpg' | sort -R | head -n 1`;style=tiled' -T myKitten &"
  68. #alias u='termite -t myKitten &'
  69. #alias mk='sudo vim /etc/portage/make.conf'
  70. #alias py='pyscript'
  71. alias mutc='$EDITOR ~/.config/mutt/muttrc'
  72. #alias termux='terminator -g ~/.config/terminator/configfortermux'
  73. alias ssr='simplescreenrecorder --start-hidden --no-systray'
  74. #alias nv='sudo vim /etc/nixos/configuration.nix'
  75. #alias wtc="qutebrowser -s content.headers.user_agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' web.whatsapp.com &"
  76. alias cdm='cd ~/mus'
  77. alias xf='xfce4-terminal'
  78. alias lf='leafpad'
  79. alias gd='git diff'
  80. alias cD='cd ~/sys/downloads'
  81. alias lla='ls -la'
  82. alias lc='ls | wc -l'
  83. #alias less=/usr/share/vim/vim81/macros/less.sh
  84. #alias less=$PAGER
  85. #alias zless=$PAGER
  86. alias chmod='chmod --preserve-root'
  87. alias vc='$EDITOR ~/.vimrc'
  88. alias g='git'
  89. alias ter='\tmux a -r -t'
  90. alias tl='\tmux ls'
  91. #alias git='hub'
  92. alias gs='git status'
  93. alias 'apar'='sudo apt autoremove -V'
  94. alias fd='sudo fdisk -l'
  95. alias xp='xrdb -merge ~/.Xresources'
  96. alias cdv='cd ~/dev'
  97. alias gu='git push'
  98. alias vw='vim $HOME/.config/sway/config'
  99. alias top='htop'
  100. alias ga='git add'
  101. alias cdd='cd ~/.cfg'
  102. alias q='exit'
  103. alias sm='sudo mount'
  104. alias fk='$EDITOR ~/.zsh/functions'
  105. alias f='fish'
  106. alias plz='sudo $(fc -ln -1)'
  107. alias rfz='source $HOME/.zshrc'
  108. alias rr='fc -s'
  109. alias wc='wc -l'
  110. alias df='df -h'
  111. alias S='systemctl'
  112. alias ss='sudo systemctl'
  113. alias cdg='cd $HOME/git'
  114. alias clock='ncmpcpp -s clock'
  115. alias cm='mutt 2>/dev/null'
  116. alias vp='$EDITOR $HOME/.config/polybar/config'
  117. alias cp='cp -i'
  118. alias mv='mv -i'
  119. #alias pb="curl -sF c=@- 'https://ptpb.pw/?u=1' | xsel"
  120. alias mi='mid3v2'
  121. alias m='mpv --really-quiet'
  122. alias mnv='mpv --no-video'
  123. alias mp='mpv --loop-file'
  124. alias mq='mpv --really-quiet --speed=0.50 --loop-file'
  125. alias ms='mpv --really-quiet --shuffle'
  126. alias hr='printf $(printf "\e[$(shuf -i 91-97 -n 1);1m%%%ds\e[0m\n" $(tput cols)) | tr " " ='
  127. alias starwars='telnet towel.blinkenlights.nl'
  128. alias e='evince'
  129. alias sv='sudo vim'
  130. alias aws='v $HOME/.config/sxhkd/sxhkdrc'
  131. alias rf='source $HOME/.bashrc'
  132. alias a='cd $HOME/.config'
  133. alias sk='autoscript'
  134. alias alis='$EDITOR ~/.zsh/custom-alias'
  135. alias yt='cd $HOME/mus/ && youtube-viewer && cd -'
  136. alias v3='vim $HOME/.config/i3/config'
  137. # Install the package only if its not updated/alread installed
  138. alias si='sudo pacman -S --needed'
  139. # Remove the package
  140. alias sr='sudo pacman -R'
  141. # Remove the package with dependencies not required by other packages too.
  142. alias srs='sudo pacman -Rs'
  143. # Remove the package, dependencies and also those who depend on it
  144. alias srsc='sudo pacman -Rsc'
  145. # Remove the package with no .pacsave configurations being left.
  146. alias srn='sudo pacman -Rn'
  147. # Update the system
  148. alias update='sudo pacman -Syu'
  149. # Get info about a package
  150. alias ssi='pacman -Si'
  151. # Same thing with local packages
  152. alias sqi='pacman -Qi'
  153. # Query local packages
  154. alias sq='pacman -Qs'
  155. # Search a package
  156. alias pS='pacman -Ss'
  157. # Also display modified and backed up files
  158. alias sqii='pacman -Qii'
  159. # Files installed by package
  160. alias sqd='pacman -Ql'
  161. # Same thing for a remote package
  162. alias sqr='pacman -Fl'
  163. # Verify presence of files installed by a package
  164. alias sqk='pacman -Qk'
  165. # Query a file in the filesystem belongs to which package
  166. alias sqo='pacman -Qo'
  167. # Same thing for a remote package
  168. alias sqor='pacman -F'
  169. # Check orphan packages
  170. alias sor='pacman -Qdt'
  171. # List packages installed explicitly
  172. alias sde='pacman -Qet'
  173. # Clean cache
  174. alias sC='sudo pacman -Scc'
  175. # Download a package without installing it
  176. alias sdw='sudo pacman -Sw'
  177. # Install local package
  178. alias sil='sudo pacman -U'
  179. alias awq='v $HOME/.config/qtile/config.py'
  180. alias awb='v $HOME/.config/bspwm/bspwmrc'
  181. alias br='$EDITOR $HOME/.config/bspwm/external_rules'
  182. alias rfb='bash $HOME/.config/bspwm/bspwmrc'
  183. alias cdb='cd $HOME/.config/bspwm'
  184. alias awx='vim $HOME/.config/sxhkd/sxhkdrc'
  185. alias rfi='i3 restart'
  186. alias x='xdg-open'
  187. alias lf='leafpad'
  188. alias cfg-cava='vim $HOME/.config/cava/config'
  189. alias lilbak='cmus-remote -k -10'
  190. alias lilfor='cmus-remote -k +10'
  191. alias bigbak='cmus-remote -k -120'
  192. alias bigfor='cmus-remote -k +120'
  193. alias pup='bash $HOME/.config/polybar/launch.sh'
  194. alias cdi='cd $HOME/.config/i3/'
  195. alias lsa='ls -a'
  196. alias cdp='cd $HOME/.config/polybar'
  197. alias ll='ls -l'
  198. alias lss='ls -lh'
  199. alias k='clear'
  200. alias wars='telnet towel.blinkenlights.nl'
  201. alias moon='curl -sL http://wttr.in/moon | head -n-4'
  202. alias mount='mount | column -t'
  203. alias scrot='import png:- | xclip -selection c -t image/png'
  204. # zsh global functions
  205. alias -g null="2>&1 >/dev/null"