Re: [SLE] - Konovalov's Midnight Commander

From: sjb (ottaky_at_ottaky.com)
Date: 08/16/03

  • Next message: Ralph Sanford: "Re: [SLE] HELP: install wireless Netgear MA521"
    Date: Sat, 16 Aug 2003 20:17:05 +0000
    To: Dylan <dylan@dylan.me.uk>
    
    

    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

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Ralph Sanford: "Re: [SLE] HELP: install wireless Netgear MA521"

    Relevant Pages