Getting a prompt to show directory path under RH 9.0 bash shell

From: bfd (bfd_at_pcisys.net)
Date: 09/02/03

  • Next message: funtom: "Re: Newbie: iptables, gui firewall suggestions"
    To: Red Hat List <redhat-list@redhat.com>
    Date: Mon, 01 Sep 2003 16:20:53 -0600
    
    

    Hello,

    I want my prompt, both in the text console and X-windows shell console,
    to show the path to the current directory, e.g.,

        [/usr/local/mozilla/icons]$

    Under RH 7.3, I could get this by adding to my .bashrc file the lines

        PS1=[\\w]\\$
        export PS1

    When adding these lines into .bashrc under RH 9.0, after typing
    "startx", I get a black screen with a black X indicating the mouse
    cursor. I believe that X is loading but KDE never loads.

    If I remove the above two lines from my .bashrc file, then KDE loads but
    my PS1 prompt is

        [\u@\h \W]\$

    which give me a display of

        [bfd@morgaine bfd]$

    If I open a shell console under KDE after it loads and then issue

        PS1=[\\w]\\$

    I get what I want.

    But I can't get it to load initially and it seems to be preventing KDE
    from loading. This makes no sense to me, but it is happening. Ain't
    computers grand? <g>

    So, two questions:

        1. What is going on when I try to use PS1=[\\w]\\$ that X but not
    KDE loads

    and

        2. how can I get the prompt that I want into my .bashrc file so that
    it will always be there regardless of what I am running

    BFD

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: funtom: "Re: Newbie: iptables, gui firewall suggestions"

    Relevant Pages

    • Re: Pros/Cons Kde vs Gnome?
      ... Maybe it's that people load KDE and launch ... > one program and freak out at the resource usage. ... Konqueror is actually pretty darn slim, but it loads a lot ...
      (Debian-User)
    • Re: Getting a prompt to show directory path under RH 9.0 bash shell
      ... I believe that X is loading but KDE never loads. ... alias mv='mv -i' ...
      (RedHat)
    • Re: Suse 9.0
      ... Josephine wrote: ... > My kde also loads a little bit more slower than on 8.2 but that is all. ...
      (alt.os.linux.suse)
    • Konqueror vs FireFox
      ... I use FF on Gnome side but because im big fan of KDE i like to use ... So i "LOVE" konqueror. ... it takes with Konqueror almoust 5 seconds. ... One reason why i love konqueror, is it loads faster than IE loads on ...
      (alt.os.linux.suse)