Results 1 to 5 of 5
So I'm almost embarrassed to ask something so simple, but I cant find any info for the life of me. Whenever I open up my terminal, I get bash-3.1$ instead ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-14-2007 #1
simple terminal configuration
So I'm almost embarrassed to ask something so simple, but I cant find any info for the life of me.
Whenever I open up my terminal, I get bash-3.1$ instead of user@machine[dir]$
I know the fix is one or two lines in a .X_____ file in my home directory, but if I dont remember the name of that file, its kinda hard to google lol.
Also, I'm using mrxvt, which is different from other terminals I have in that it has its own .mrxvtrc file instead of just having its configuration in above unknown file.
Would that possibly be the place i'm looking for to change my prompt?
- 06-14-2007 #2
To fix the prompt, try
#cp /etc/skel/.bash* /home/someuser/. #chown someuser:somegroup /home/someuser/.bash*
- 06-14-2007 #3
For Bash, the $PS1 global variable controls the prompt. You can set this in your ~/.bashrc.
alex@danu ~ $ echo $PS1 \[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]
The documentation for this is probably in the man page. I know I had to figure out the variable myself some time back, and I found a resource somewhere.
- 06-15-2007 #4
thanks. .bashrc is really the keyword I needed to know to get startedLiving the digital dream....
Disclaimer: I may be wrong since I was once before.
Breathe out so I can breathe you in ~~Everlong
- 06-15-2007 #5
For good examples of configuration files (including .bashrc) visit dotfiles.com and dotfiles.org