Advertisement
Guest User

AlecSchueler

a guest
Aug 21st, 2009
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 KB | None | 0 0
  1. #  Navigation
  2. alias ,='cd -'
  3. alias ↑='cd ..'
  4.  
  5. alias pu='pushd'
  6. alias po='popd'
  7.  
  8.  
  9. #  Files & Folders
  10. alias cp='cp -i'
  11. alias mv='mv -i'
  12. alias mkdir='mkdir -v -p'
  13.  
  14. function mkcd() { mkdir -p -v "$1"; cd "$1"; }
  15.  
  16. alias ls='ls --color=au -w 50'
  17. alias ll='ls -lArh --color=au'
  18. alias lsd='ls --color -d  */'
  19. alias lsf='ls -f'
  20. alias lsr='ls -cr'
  21.  
  22. alias big='du --max-depth=1 | sort -nr | head'
  23. alias home='cd && clear'
  24.  
  25.  
  26. #  Internet
  27. alias up='ping -c 1 google.com'
  28.  
  29. alias scp='scp -r'
  30. alias wget='wget -c'
  31.  
  32. OPERA="opera -private -nomail -nolirc"
  33.  
  34. function goog() {
  35.   url=`echo google.com/search?q=$(echo "$@" | sed s/\ /+/g)`
  36.   "$OPERA $url" &> /dev/null &
  37.   }
  38. function etym() {
  39.   url=`echo etymonline.com/index.php?search=$(echo "$@" | sed s/\ /+/g)`
  40.   "$OPERA $url" &> /dev/null &
  41.   }
  42.  
  43.  
  44. #  Media
  45. alias mpl='mplayer -really-quiet &> /dev/null'
  46. alias vmpl='mplayer -fs -aspect 16:9 -really-quiet'
  47. alias rfeh='feh -rFZ'
  48. alias zfeh='feh -rFzZ'
  49. alias feh='feh -FZ'
  50.  
  51. complete -f mpl vmpl rfeh zfeh
  52.  
  53. function prns(){
  54.     time=$(date +%F--%H:%M:%S)
  55.     scrot "$time.png" -e "mv $time.png ~/docs/printscreen/" -q 85
  56.     }
  57. function prnsi(){
  58.     time=$(date +%F--%H:%M:%S)
  59.     scrot "$time.png" -s -e "mv $time.png ~/docs/printscreen/" -q 85
  60.     }
  61.  
  62.  
  63. #  Packages
  64. alias yS='yaourt -S'
  65. alias yss='yaourt -Ss'
  66. alias yR='yaourt -R'
  67. alias yRns='yaourt -Rns'
  68. alias syu='yaourt -Syu'
  69.  
  70.  
  71. #  Miscellenea
  72. alias ka='killall'
  73. alias c='clear'
  74. alias nano='nano -BELOxw -T 4'
  75. alias keys='xset r rate 150 20;setxkbmap gb'
  76. alias shrc='source ~/.bashrc && clear'
  77.  
  78.  
  79. # CPU freq
  80. alias cod='sudo modprobe acpi-cpufreq;sudo cpufreq-set -g ondemand'
  81. alias cps='sudo cpufreq-set -g powersave'
  82. alias cpf='sudo cpufreq-set -g performance'
  83.  
  84.  
  85. #  Common Errors...
  86. alias print='echo'
  87. alias feg='feh'
  88. alias cd..='cd ..'
  89. alias cd~='cd ~'
  90. alias cd-='cd -'
  91. alias oython='python'
  92. alias greo='grep'
  93. alias caat='cat'
  94.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement