hootiegibbon

.bashrc

Jan 1st, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.65 KB | None | 0 0
  1. #!/bin/bash
  2. #bashrc 'borrowed' snippits
  3.  
  4. # Colors:
  5. black='\e[0;30m'
  6. blue='\e[0;34m'
  7. green='\e[0;32m'
  8. cyan='\e[0;36m'
  9. red='\e[0;31m'
  10. purple='\e[0;35m'
  11. brown='\e[0;33m'
  12. lightgray='\e[0;37m'
  13. darkgray='\e[1;30m'
  14. lightblue='\e[1;34m'
  15. lightgreen='\e[1;32m'
  16. lightcyan='\e[1;36m'
  17. lightred='\e[1;31m'
  18. lightpurple='\e[1;35m'
  19. yellow='\e[1;33m'
  20. white='\e[1;37m'
  21. nc='\e[0m'
  22.  
  23.  
  24.  
  25.  
  26. export BROWSER='/usr/bin/xxxterm -n'
  27. export DE=gnome
  28. export IPLAYER_OUTDIR="/home/jason/Videos/"
  29.  
  30. #alias vte="vte --reverse -f Tamsyn -A -D"
  31. alias xanim=mplayer
  32. #alias xterm=sakura
  33. alias screen='screen -R'
  34.  
  35.  
  36. # Source global definitions
  37. if [ -f /etc/bashrc ]; then
  38.     . /etc/bashrc
  39. fi
  40.  
  41.  
  42. ####
  43.  
  44.  
  45. extract()
  46. {
  47. if [ -f "$1" ] ; then
  48. case "$1" in
  49. *.tar.bz2) tar xjf "$1" ;;
  50. *.tar.gz) tar xzf "$1" ;;
  51. *.tar.Z) tar xzf "$1" ;;
  52. *.bz2) bunzip2 "$1" ;;
  53. *.rar) unrar x "$1" ;;
  54. *.gz) gunzip "$1" ;;
  55. *.jar) unzip "$1" ;;
  56. *.tar) tar xf "$1" ;;
  57. *.tbz2) tar xjf "$1" ;;
  58. *.tgz) tar xzf "$1" ;;
  59. *.zip) unzip "$1" ;;
  60. *.Z) uncompress "$1" ;;
  61. *) echo "'$1' cannot be extracted." ;;
  62. esac
  63. else
  64. echo "'$1' is not a file."
  65. fi
  66. }
  67.  
  68. ##
  69.  
  70.        
  71. # History Options
  72. # ###############
  73.  
  74. # Don't put duplicate lines in the history.
  75.  export HISTCONTROL="ignoredups"
  76.  
  77. localnet ()
  78. {
  79. /sbin/ifconfig | awk /'inet addr/ {print $2}'
  80. echo ""
  81. /sbin/ifconfig | awk /'Bcast/ {print $3}'
  82. echo ""
  83. }
  84.  
  85. #### PHUN PHUN PHUN this has no real purpose but is PHUN!
  86.  
  87. clear
  88. echo -e "${blue}";figlet "RAW Edition";
  89. #echo -ne "${red}Today is:\t\t${cyan}" `date`; echo ""
  90. #echo -e "${red}Kernel Information: \t${cyan}" `uname -smr`
  91. echo -ne "${cyan}";infobash -v3;echo ""
  92. echo -e "${grey}"; cal -3
Advertisement
Add Comment
Please, Sign In to add comment