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 ...
- 04-21-2007 #1Linux 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:
but doesn't seem to be working.. any help would be appreciatedCode:# don't put duplicate lines in the history. See bash(1) for more options export HISTCONTROL=ignoredups
- 04-21-2007 #2Linux 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.
- 04-22-2007 #3Linux 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..


Reply With Quote