Advertisement
workdowg

archarm bash.bashrc

Apr 20th, 2012
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #name this file bash.bashrc
  2. #
  3. # /etc/bash.bashrc
  4. #
  5. # This file is the systemwide bashrc file. While most of the
  6. # environment is preserved when running an interactive shell
  7. # the PS[1-4] variables, aliases and functions are reset.
  8. #
  9. # When running a non-login shell, apply the following settings:
  10. # - Prompt defaults (PS[1-4], PROMPT_COMMAND)
  11. # - bash_completion if it exists
  12. # - source /etc/bash.bashrc.local
  13.  
  14. PS1='[\u@\h \W]\$ '
  15. PS2='> '
  16. PS3='> '
  17. PS4='+ '
  18.  
  19. export PS1 PS2 PS3 PS4
  20.  
  21. if test "$TERM" = "xterm" -o \
  22. "$TERM" = "xterm-color" -o \
  23. "$TERM" = "xterm-256color" -o \
  24. "$TERM" = "rxvt" -o \
  25. "$TERM" = "rxvt-unicode" -o \
  26. "$TERM" = "xterm-xfree86"; then
  27. PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
  28. export PROMPT_COMMAND
  29. fi
  30.  
  31. [ -r /etc/bash_completion ] && . /etc/bash_completion
  32. [ -r /etc/bash.bashrc.local ] && . /etc/bash.bashrc.local
  33. export EDITOR="nano"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement