Results 1 to 2 of 2

Thread: Gnome Terminal prompt assistance.

  1. #1
    Join Date
    Jun 2008
    Location
    Davenport, IA
    Posts
    17

    Question Gnome Terminal prompt assistance.

    Hi all, I have a quick question, that is more of a snaggle, but it is something that is kinda bugging me.

    I would like to customize the prompt in my terminal. I would like it just to display the present directory, not the whole directory listing. So instead of

    paul@Antiparabox:~/Documents/School/Operating Systems>

    I get:


    paul@Antiparabox:Operating Systems>

    I came across a how to earlier, and have since lost it, but it didn't help completely either. Any help would be appriciated. Thank you.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,822
    Blog Entries
    15

    Default Re: Gnome Terminal prompt assistance.

    Quote Originally Posted by antiparadigm
    Hi all, I have a quick question, that is more of a snaggle, but it is
    something that is kinda bugging me.

    I would like to customize the prompt in my terminal. I would like it
    just to display the present directory, not the whole directory listing.
    So instead of

    paul@Antiparabox:~/Documents/School/Operating Systems>

    I get:

    paul@Antiparaboxperating Systems>

    I came across a how to earlier, and have since lost it, but it didn't
    help completely either. Any help would be appriciated. Thank you.
    Hi
    You need to edit your ~/.bashrc PS1 variable to;
    Code:
    PS1="\u@\h:\W>"
    Google on "customize terminal prompt" should give you plenty of hits

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.1 (i586) Kernel 2.6.27.19-3.2-pae
    up 0:52, 2 users, load average: 0.35, 0.28, 0.26
    ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •