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