Find the answer to your Linux question:
Results 1 to 3 of 3
I want ot customize my bash to do the following on login: 1/ not display the full current directory at the prompt 2/delete duplicate command history items this is in ...
  1. #1
    Linux Newbie
    Join Date
    Jan 2005
    Posts
    146

    Customizing Bash

    I want ot customize my bash to do the following on login:

    1/ not display the full current directory at the prompt

    2/delete duplicate command history items

    this is in the .bashrc file:

    Code:
    # don't put duplicate lines in the history. See bash(1) for more options
    export HISTCONTROL=ignoredups
    but doesn't seem to be working.. any help would be appreciated

  2. #2
    Linux User
    Join Date
    Aug 2005
    Posts
    408
    Customizing the prompt is pretty easy, actually, and just about every beginner book on linux mentions something about this. A google search will also produce some useful information. Here's a random page that should answer your question, that I found by googling "customize bash prompt":
    http://wiki.linuxquestions.org/wiki/Bash

    If you type "man bash", then scroll down to prompting, you can see a full list of options.

  3. #3
    Linux Newbie
    Join Date
    Jan 2005
    Posts
    146
    Thanks; mark item /1 solved:

    The solution: edit the /etc/bash.bashrc file (as root if needed)
    and delete the /w switch in the line starting with PS1..

Posting Permissions

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