Commit b30f6c34 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Use the same PS1 prompt for bash on Linux and Mac


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@19967 4525493e-7705-40b1-a816-d608a930855b
parent 45ac13b5
# Determine the path to this .bashrc
# Determine the project (CORAL or COOL) from the top-level CMakeLists.txt
project="xenv "
if [ "$BASH_SOURCE" != "" ]; then
topdir=`dirname ${BASH_SOURCE}`
topdir=`cd ${topdir}; pwd`
project=`more ${topdir}/CMakeLists.txt 2>&1 | grep project | sed "s/project(//" | sed "s/)/ /"`
fi
###project="xenv "
###if [ "$BASH_SOURCE" != "" ]; then
### topdir=`dirname ${BASH_SOURCE}`
### topdir=`cd ${topdir}; pwd`
### project=`ls ${topdir}/*.xenv`
### project=`basename ${project} .xenv`
###fi
# Minimal bash setup
if [ `uname` == "Darwin" ]; then
PS1='\[\e[7;34m\][\u@\h '$project'\s]\[\e[0m\]\[\e[1;34m\] > \[\e[0m\]'
###PS1='\[\e[7;34m\][\u@\h '$project'\s]\[\e[0m\]\[\e[1;34m\] > \[\e[0m\]'
alias 'ls=ls -aFG'
else
PS1='\[\e[7;34m\][\u@\h '$project'\s]\[\e[0m\]\[\e[1;34m\] \w > \[\e[0m\]'
###PS1='\[\e[7;34m\][\u@\h '$project'\s]\[\e[0m\]\[\e[1;34m\] \w > \[\e[0m\]'
alias 'ls=ls -aF --color=tty'
fi
PS1='\[\e[7;34m\][\u@\h \s]\[\e[0m\]\[\e[1;34m\] \w > \[\e[0m\]'
alias 'rm=rm -i'
alias 'mv=mv -i'
alias 'cp=cp -i'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment