I haven't .bashrc!!

Forum rules
Before you post please read how to get help

I haven't .bashrc!!

Postby dancer_69 on Sun Dec 11, 2011 10:21 pm

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?
dancer_69
Level 1
Level 1
 
Posts: 12
Joined: Thu May 19, 2011 1:25 pm

Linux Mint is funded by ads and donations.
 

Re: I haven't .bashrc!!

Postby AlbertP on Mon Dec 12, 2011 3:18 pm

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.
AlbertP
Level 16
Level 16
 
Posts: 6522
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: I haven't .bashrc!!

Postby awi on Mon Dec 12, 2011 6:07 pm

AlbertP is right, you should have a default one in

Code: Select all
/etc/bash.bashrc


I have my own based on it.
awi
Level 1
Level 1
 
Posts: 13
Joined: Wed Nov 23, 2011 8:23 pm
Location: Asunción, Paraguay

Re: I haven't .bashrc!!

Postby Aethyr on Mon Dec 12, 2011 9:37 pm

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.
Arch user now. Inactive for indefinite amount of time.
Aethyr
Level 2
Level 2
 
Posts: 73
Joined: Wed Apr 06, 2011 6:05 am

Re: I haven't .bashrc!!

Postby dancer_69 on Mon Dec 12, 2011 9:54 pm

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.
dancer_69
Level 1
Level 1
 
Posts: 12
Joined: Thu May 19, 2011 1:25 pm


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 5 guests