LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   no .bashrc file. Need good howto or tips ? (https://www.linuxquestions.org/questions/slackware-14/no-bashrc-file-need-good-howto-or-tips-125017/)

cozye 12-11-2003 04:27 PM

no .bashrc file. Need good howto or tips ?
 
Hello everyone.
I have a default slackware installation and have been wanting to change my bash setup. It is all using the default /etc/profile now I suspect, as there is not a .bashrc or .bash_profile. Problem is, I have never really set one up before and could use a tip or too. I did read some on http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html

It would be great if I could find a little more information on setting a .bashrc from scratch, knowing what I need to have etc..

Thanks,
Eric

cozye 12-11-2003 04:29 PM

also, does anyone have any thoughts on how it will behave in aterm ? I am used to gnome-terminal but I have been testing aterm and notice that it behaves a little differently.

DrOzz 12-11-2003 04:42 PM

well i see what you want, but you don't say exactly what you want...i think that makes sense ;-)
anyways, you'll have to state what you want to have in this file and for what purpose, like do you just want to change how your prompt looks? i am not sure...
anyways its no big deal if you don't have it, just make it...
type "touch .bashrc in your home folder and there you go its there, now as to what you want in it, i do not know..
or just open it up in a text editor (even though it doesn't exist) and once you save it, then again it will also be there...
as per that howto your reading, i don't think there is much more to need other than that....i know when it comes to linux and man pages and howtos, some, maybe most seem like greek to most, but that howto is straight forward, and it gives plenty of examples to play with...
and you ask the question what do you need? well to learn you will need that howto, and to do it just a text editor of your choice...and thats it...
if you want specific examples, then just state what your trying to do...

trickykid 12-11-2003 04:54 PM

You can always do as root then change permissions/ownership, etc:

cat /etc/profile > /home/<username>/.bashrc

To get you started and then just edit what don't want and add what you do want. Gives you an idea how they are setup, etc.

ringwraith 12-11-2003 07:40 PM

I believe you can find some sample bashrc files at http://www.dotfiles.com/ .
I also see if you google for .bashrc you will find lots of other examples.


All times are GMT -5. The time now is 04:20 AM.