Advertisement
corrosiontears

Bashrc 'root' Manjaro/Arch (Personalizado)

Feb 27th, 2015
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #
  2. # /etc/bash.bashrc
  3. #
  4.  
  5. # If not running interactively, don't do anything
  6. [[ $- != *i* ]] && return
  7.  
  8. #PS1='[\u@\h \W]\$ '
  9. PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;31m\]\$ \[\e[m\]\[\e[0;92m\]'
  10. PS2='> '
  11. PS3='> '
  12. PS4='+ '
  13.  
  14. case ${TERM} in
  15.   xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
  16.     PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
  17.  
  18.     ;;
  19.   screen)
  20.     PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
  21.     ;;
  22. esac
  23.  
  24. [ -r /usr/share/bash-completion/bash_completion   ] && . /usr/share/bash-completion/bash_completion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement