On Saturday 16 August 2003 21:17, sjb wrote:
Dylan wrote:
The default prompt contains shell code to set the xterm window title which confuses MC.
Add an entry to your .bashrc to override it e.g.
export PS1=\u@\h:\w>
Two questions: What's all that about and why does it give me a syntax error?
PS1 is the environment variable that defines your bash prompt. (Actually, the primary bash prompt, PS2 defines the continuation prompt, usually '>').
\u = username \h = host name \w = working directory
8.2 has a default prompt which contains code to set the title of the xterm to the working directory, and that confuses MC. The default prompt is set in /etc/bashrc, but you can override the default in your user's ~/.bashrc
The syntax error is because I neglected to wrap the prompt code in single quotes. It should have been
export PS1='\u@\h:\w> '
Thank you - am I right in thinking the single quote leads to expansion of escapes and variables whereas a double quote indicates a literal string? Dylan
My apologies.
The man entry for bash will explain all.
sjb
-- Sweet moderation Heart of this nation Desert us not We are between the wars - Billy Bragg