SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, i like to watch the fortune cookies stuff every time i open up a terminal. i now know the reason why kde 3.2.1 delete this issue it don't delete it, it just delete the user profile in the terminal so you don't see any message of fortune cookie. well i'm using aterm in kde 3.1.4 i want that instead of the typical bash$ that appears in the aterm terminal, i want it to appear user@machine$ like the usual one that appears in the kde console all the time. how i put that back but in aterm? i know how to delete user@machine$ from any terminal, but i don't know how to put it back. any tips?
You're experiencing the difference between a login shell and a sub-shell.
There are a few initialization scripts which bash reads when it starts up. If you log in, say in a regular old console, bash reads /etc/profile and /home/user/.bash_profile
When a subshell (xterms and the like) starts up, it only reads the file /home/user/.bashrc
Within /home/user/.bashrc you want to have the line:
Okay, I get it and I was right. What you want to do is open up your .bashrc file in your home directory. There will be a chunk that looks like
PS1="[stuff in here]"
Change that to
PS1="\u@\h:\W$"
Check out the link I gave a few posts back, it gives all the commands that you can add to change the way it looks. You can add all sorts of stuff.
ohh yeah, but the problem is i don't have any .bashrc file in my home directory. i only have .bash_history which is a text file that have all the commands i have already use in bash. so what can i say, if konsole have the user login as default prompt where does it check it? so i could put it too in aterm.
Yeah, just make one and put the PS1=blahblahblah thing I gave you. You can also make aliases and stuff like that with your .bashrc file. It's pretty nifty.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.