Posted By

kmc on 05/31/07


Tagged


Versions (?)

.bashrc


 / Published in: Bash
 

  1. # /etc/skel/.bashrc:
  2. # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $
  3.  
  4. # This file is sourced by all *interactive* bash shells on startup. This
  5. # file *should generate no output* or it will break the scp and rcp commands.
  6.  
  7. PS1='\u@\h$ '
  8.  
  9. # colors for ls, etc.
  10. eval `dircolors -b /etc/DIR_COLORS`
  11. alias d="ls --color"
  12. alias ls="ls --color=auto"
  13. alias ll="ls --color -l"
  14. alias la="ls --color -a"
  15.  
  16. # Change the window title of X terminals
  17. case $TERM in
  18. xterm*|rxvt|Eterm|eterm)
  19. PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
  20. ;;
  21. screen)
  22. PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
  23. ;;
  24. esac
  25.  
  26. ##uncomment the following to activate bash-completion:
  27. #[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion

Report this snippet  

You need to login to post a comment.