Advertisement
msjche

iMac11,3 ~/.bashrc

Jan 6th, 2013
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. #
  2. # ~/.bashrc
  3. #
  4.  
  5. # If not running interactively, don't do anything
  6. [[ $- != *i* ]] && return
  7.  
  8. alias ls='ls --color=auto'
  9. #PS1='[\u@\h \W]\$ '
  10.  
  11. # enable color support of ls and also add handy aliases
  12. if [ -x /usr/bin/dircolors ]; then
  13. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  14. alias ls='ls --color=auto'
  15. alias dir='dir --color=auto'
  16. alias vdir='vdir --color=auto'
  17.  
  18. alias grep='grep --color=auto'
  19. alias fgrep='fgrep --color=auto'
  20. alias egrep='egrep --color=auto'
  21. fi
  22.  
  23. # some more aliases
  24. alias ll='ls -l'
  25. alias la='ls -A'
  26. alias l='ls -CF'
  27. alias "XM"='pyxis'
  28. alias "home"='cd ~'
  29. alias ".."='cd ..'
  30. alias "k"='exit'
  31. alias "bash"='vim /home/msjche/.bashrc'
  32. alias "BB"='sudo /home/msjche/scripts/brightness.sh'
  33. alias "FF"='ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 15 -s 2560x1440 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 0 output.avi'
  34. #alias "FF"='ffmpeg -f alsa -i pulse -f x11grab -r 25 -s 2560x1440 -i :0.0 -acodec pcm_s16le -vcodec huffyuv -sameq Screencast.avi'
  35. alias "MP"='ncmpcpp'
  36. alias "news"='newsbeuter'
  37. alias "UU"='packer -Syu'
  38. alias "I"='yaourt'
  39. alias "pac"='sudo pacman -S'
  40. alias "WW"='wicd-curses'
  41. alias "gcalw"='gcalcli --width 12 calw'
  42. alias "gcal"='gcalcli --width 12 calm'
  43. alias "gcaladd"='gcalcli quick'
  44. alias "gcala"='gcalcli agenda'
  45. alias "N"='newsbeuter'
  46. alias "nvidia"='nvidia-smi -q -d TEMPERATURE'
  47. alias "ut"='youtube-viewer'
  48. alias "clock"='tty-clock -c -C 4'
  49. alias "irc"='irssi -c irc.freenode.net'
  50. alias "stopwatch"='echo "cntl-z to end" & time cat'
  51. alias "starwars"='telnet towel.blinkenlights.nl'
  52. alias "convert"='ffmpeg -i /home/msjche/out.ogv -ab 128 -b 1200 /home/msjche/Screencasts/Screencast.avi'
  53. alias "record"='gtk-recordMyDesktop'
  54. alias "info"='inxi -F'
  55. alias "rip"='sound-juicer'
  56. alias "twit"='turses'
  57.  
  58. # Netfoo
  59. alias "driftnet"='echo "see pics from other computers on network" && sudo driftnet -i eth0'
  60. alias "ettercap"='echo "set up interface to capture network data" && sudo ettercap -TQM arp -i eth0 ///'
  61. alias "urlsnarf"='echo "see which websites others on network are visiting" && sudo urlsnarf -i eth0 |cut -d\" -f4'
  62. alias "slurm"='slurm -i wlan0'
  63. alias "net"='sudo nethogs eth0'
  64.  
  65.  
  66. RED="\[\e[1;31m\]"
  67. GREEN="\[\e[1;32m\]"
  68. YELLOW="\[\e[1;33m\]"
  69. BLUE="\[\e[1;36m\]"
  70. GREY="\[\e[1;30m\]"
  71. WHITE="\[\e[1;37m\]"
  72.  
  73. if [[ $EUID == 0 ]] ; then
  74. PS1="$RED(\[\033[1;37m\] \w \[\e[0m\]$RED) >> \[\e[0;37m\]"
  75. else
  76. PS1="$YELLOW(\[\033[1;36m\] \w \[\e[0m\]$YELLOW)$GREEN >> \[\e[0;37m\]"
  77. fi
  78.  
  79.  
  80. archey
  81. #screenfetch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement