Mailinglist Archive: opensuse (2731 mails)

< Previous Next >
Re: [SLE] - Konovalov's Midnight Commander
  • From: sjb <ottaky@xxxxxxxxxx>
  • Date: Sat, 16 Aug 2003 20:17:05 +0000
  • Message-id: <3F3E9141.7060108@xxxxxxxxxx>
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> '

My apologies.

The man entry for bash will explain all.

sjb


< Previous Next >
Follow Ups