Advertisement
ariyasa

.bashrc-slackware

Feb 18th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #.bashrc
  2.  
  3. # Add bin to path
  4. export PATH="$PATH:/sbin:/usr/sbin:$HOME/bin"
  5.  
  6. #export PATH="$PATH:$HOME/bin"
  7.  
  8. # Dynamic resizing
  9. shopt -s checkwinsize
  10.  
  11. # Custom prompt
  12. #PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  13.  
  14. #08-29-06 11:40 gws
  15.  
  16. if [ `id -un` = root ]; then
  17. PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
  18. else
  19. PS1='\[\033[1;32m\]\h:\w\$\[\033[0m\] '
  20. fi
  21. #
  22. # Add color
  23. eval `dircolors -b`
  24.  
  25. # User defined aliases
  26. alias tpadon='killall syndaemon'
  27. alias tpadoff='syndaemon -i 2 -d'
  28. alias cls='clear'
  29. alias clls='clear; ls'
  30. alias ll='ls -l'
  31. alias lsa='ls -A'
  32. alias lsg='ls | grep'
  33. alias lsp='ls -1 /var/log/packages/ > package-list'
  34. alias na='nano'
  35. alias web='links -g -download-dir ~/ www.google.com'
  36.  
  37. #08-29-06 11:50 gws
  38.  
  39. #To clean up and cover your tracks once you log off
  40. #Depending on your version of BASH, you might have to use
  41. # the other form of this command
  42. trap "rm -f ~$LOGNAME/.bash_history" 0
  43.  
  44. #The older KSH-style form
  45. # trap 0 rm -f ~$LOGNAME/.bash_history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement