- the linux console doesn't handle the set title escape code,

- renice the shell for OSX, despite claiming to be the most advanced OS it doesn't really handles playing a video while doing a build...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36111 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-04-10 15:39:36 +00:00
parent 6e1b92abf9
commit 61ce1824df
1 changed files with 8 additions and 1 deletions

View File

@ -105,16 +105,20 @@ function dev() {
history -r
# set the prompt
# cf. http://tldp.org/HOWTO/Bash-Prompt-HOWTO/
NICEPS1='\[\033[1m\][\u@\h \w]\[\033[0m\]\$ '
case "$TERM" in
dumb|emacs)
# simpler prompt
export PS1='[\u@\h \w]\$ '
;;
linux)
export PS1="$NICEPS1"
;;
*)
# prompt: set window title to [project:folder] also
#export PS1='\[\033]0;['$1':\W]\a\]\[\033[1m\][\u@\h \w]\[\033[0m\]\$ '
#export PS1='\033]0;['$1':\W]\a\033[1m[\u@\h \w]\033[0m\$ '
export PS1='\[\033[1m\][\u@\h \w]\[\033[0m\]\$ '
export PS1="$NICEPS1"
export PROMPT_COMMAND='echo -en "\033]0;['$1':${PWD##*/}]\a"'
;;
esac
@ -123,6 +127,9 @@ function dev() {
beos|haiku)
prio $$ 1
;;
darwin10.*)
renice 3 $$
;;
linux-*)
# linux doesn't really need it much
#renice 3 $$