Mercurial > index.cgi > dotfiles
comparison .bashrc @ 16:b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
switch to the dotfile check so we can create a list of hosts for which we
don't want to check against the server, just warn.
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Sat, 05 Sep 2009 20:18:20 +0000 |
parents | 94cfcec3b5b6 |
children | 90ad040b032c |
comparison
equal
deleted
inserted
replaced
15:fe83d9892ee3 | 16:b9896ae0733c |
---|---|
16 fi | 16 fi |
17 | 17 |
18 # | 18 # |
19 # Environment variables | 19 # Environment variables |
20 # | 20 # |
21 [[ "$PS1" ]] && export PS1='\h:\w\$ ' | 21 [[ "$PS1" ]] && export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' |
22 export PAGER=less | 22 export PAGER=less |
23 export EDITOR=vim | 23 export EDITOR=vim |
24 export RUBYLIB=$HOME/Installs/rubygems/lib | 24 export RUBYLIB=$HOME/Installs/rubygems/lib |
25 export GEM_HOME=$HOME/Installs/rubygems/gems | 25 export GEM_HOME=$HOME/Installs/rubygems/gems |
26 | |
27 # If this is an xterm set the title to user@host:dir | |
28 case "$TERM" in | |
29 xterm*|rxvt*) | |
30 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' | |
31 ;; | |
32 *) | |
33 ;; | |
34 esac | |
26 | 35 |
27 # | 36 # |
28 # Paths | 37 # Paths |
29 # | 38 # |
30 # Standard-ish paths; some of these may be in place already, but if | 39 # Standard-ish paths; some of these may be in place already, but if |