- fix typo, it's "dumb" terminal type :)

- move setting the terminal window title to COMMAND_PROMPT, it fixes issues like beeping when editting the command line.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28984 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2009-01-23 01:02:04 +00:00
parent 64f7e20f9c
commit a0a4211e6d
+4 -2
View File
@@ -92,14 +92,16 @@ function dev() {
# set the prompt # set the prompt
# cf. http://tldp.org/HOWTO/Bash-Prompt-HOWTO/ # cf. http://tldp.org/HOWTO/Bash-Prompt-HOWTO/
case "$TERM" in case "$TERM" in
dump|emacs) dumb|emacs)
# simpler prompt # simpler prompt
export PS1='[\u@\h \w]\$ ' export PS1='[\u@\h \w]\$ '
;; ;;
*) *)
# 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 PROMPT_COMMAND='echo -e "\033]0;['$1':${PWD##*/}]\a"'
;; ;;
esac esac
# lower priority so background builds don't slow the GUI too much # lower priority so background builds don't slow the GUI too much