";;
*) local title=''
esac
local prompt=$(echo "$PS1" | sed -e 's/\\\[\\033\]0;.*\\007\\\]//')
PS1="${title}${prompt}"
}
With this, it's nice to do:
$ PS1="\u\$ "
$ settitle "\\h: \\w"
This puts the user name in the prompt, and the host and working directory
in the title bar.
--
William E. Kempf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
ould find on the web on this subject, which is how I've
gotten as far as I have. But it seems to me that someone must have
already fought this battle and have a solution. It's frustrating to not
have your keyboard behave properly, especially when you work on mixed
environments/comp
2 matches
Mail list logo