[Gllug] bash prompt

SteveC steve at fractalus.com
Mon Dec 2 21:32:49 UTC 2002


* David Damerell (damerell at chiark.greenend.org.uk) wrote:
> On Monday, 2 Dec 2002, SteveC wrote:
> >any more guesses? This is becoming quite annoying.
> 
> What do your .bash_profile and .bashrc actually say?

bash-2.05a$ cat .bashrc 
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or 
later
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.5 
2002/08/07
 18:13:35 azarah Exp $

# This file is sourced by all *interactive* bash shells on startup.  This
# file *should generate no output* or it will break the scp and rcp 
commands.

# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"

# Change the window title of X terminals 
case $TERM in
        xterm*|rxvt|eterm)
                PROMPT_COMMAND='echo -ne 
"\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$
HOME/~}\007"'
                ;;
        screen)
                PROMPT_COMMAND='echo -ne 
"\033_${USER}@${HOSTNAME%%.*}:${PWD/$HO
ME/~}\033\\"'
                ;;
esac

##uncomment the following to activate bash-completion:
#[ -f /etc/profile.d/bash-completion ] && source 
/etc/profile.d/bash-completion
bash-2.05a$ 
bash-2.05a$ cat .bash_profile 
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or 
later
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bash_profile,v 
1.8 2002/08/07 18:13:35 azarah Exp $

#This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc

have fun,

SteveC steve at fractalus.com http://www.fractalus.com/steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20021202/97dde69f/attachment.pgp>


More information about the GLLUG mailing list