LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   terminal problem (https://www.linuxquestions.org/questions/linux-newbie-8/terminal-problem-856406/)

MystKid 01-14-2011 06:29 PM

terminal problem
 
hello guys i am running slackware and i cant set my terminal to regular shell. when i open up a terminal i see something like bash4.1 instead of hostname and nickname how can i change this. i use more than one terminal so id liek to make this change for all terminals
thanks

nenpa8lo 01-14-2011 06:37 PM

Execute in command line:
Code:

PS1="[\u@\h:\w ] $ "
or insert it into your bashrc file.

MystKid 01-14-2011 07:14 PM

ok i did that and now i think its set the right way but now when i open a new tab in konsole it takes me to the bash4.1 thing. how can i change that

edit: i have looked around and i cant find the bashrc file

sycamorex 01-14-2011 07:20 PM

Your .bashrc file should be in your home directory (for me it's in /home/sycamorex).
Note that it's a hidden file (the dot at the beginning of the name)

Just type:

Code:

nano ~/.bashrc
and add the suggested line. I don't know which distro you're using but you might as well try adding:

Code:

. /etc/profile
instead.

MystKid 01-14-2011 07:24 PM

on first post i sayd the distro i use :)

sycamorex 01-14-2011 07:33 PM

Quote:

Originally Posted by MystKid (Post 4224762)
on first post i sayd the distro i use :)

LOL. I'm blind. You can include ". /etc/profile" in your .bashrc as it'll load other variables as well.


All times are GMT -5. The time now is 08:03 PM.