I haven't .bashrc!!

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
dancer_69
Level 1
Level 1
Posts: 38
Joined: Thu May 19, 2011 1:25 pm

I haven't .bashrc!!

Post by dancer_69 »

Hello,
I recently install linux mint 12, I wanted to put an export path command for adb.
But there isn't a .bashrc file in my user directory. I have only .bash_logout and .bash_history.
Is there any change on mint 12 about bash?
Any way to fix this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: I haven't .bashrc!!

Post by AlbertP »

Just create that file and it should be working.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
awi
Level 1
Level 1
Posts: 13
Joined: Wed Nov 23, 2011 8:23 pm
Location: Asunción, Paraguay
Contact:

Re: I haven't .bashrc!!

Post by awi »

AlbertP is right, you should have a default one in

Code: Select all

/etc/bash.bashrc
I have my own based on it.
Aethyr

Re: I haven't .bashrc!!

Post by Aethyr »

mmm I used ~/.profile to add my own paths... However, on older installations I remember I created my own ~/.bashrc and that worked fine. If you're using a separate /home partition, I suggest using one of those methods, since you can retain the config file if you use the same /home over multiple distros/re-installs of the / partition etc.
dancer_69
Level 1
Level 1
Posts: 38
Joined: Thu May 19, 2011 1:25 pm

Re: I haven't .bashrc!!

Post by dancer_69 »

Thanks for all answers.
In fact I use a separate home partition and I had a .bashrc from another previous distro.
So I used this. At first have some display unicode characters problems, but when I saved the file as UTF-8 format solved.
All seems to be fine now
Thanks again.
Locked

Return to “Scripts & Bash”