Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 17, 2010, 09:08 PM   #1
macsig
macrumors regular
 
Join Date: Oct 2006
Location: Marina del Rey, CA
editing .bashrc

Hello guys,
How can I edit .bashrc ?
I'm playing around with RVM and I need to add a line at the end of that file but I have no idea how to do that.

Thanks
__________________
Alla prossima ...
macsig is offline   0 Reply With Quote
Old Apr 17, 2010, 10:36 PM   #2
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
If you don't know how to edit you may want to rethink editing it as it can cause problems if you mess up. But if you want to, just open Terminal and enter the following.
Code:
pico ~/.bashrc
or to open in TextEdit.
Code:
open -t ~/.bashrc
angelwatt is offline   0 Reply With Quote
Old Apr 18, 2010, 12:34 AM   #3
macsig
Thread Starter
macrumors regular
 
Join Date: Oct 2006
Location: Marina del Rey, CA
thanks
__________________
Alla prossima ...
macsig is offline   0 Reply With Quote
Old Apr 18, 2010, 01:14 AM   #4
mac2x
macrumors 65816
 
Join Date: Sep 2009
Another handy tip for the command line is the more command, which lets your view documents like .bashrc without opening an editor. Obviously, you must open it in a text editor to actually change anything.

Code:
$ more .bashrc
__________________
Retina MBP | 2.6 GHz i7 | 16 GB RAM

Gaming Rig | Core i7-2600K | 16 GB RAM | 160 GB OCZ Agility 2 | EVGA GTX 770 SC | Windows 7 Pro x64 | ASUS VG248QE
mac2x is offline   0 Reply With Quote
Old Apr 18, 2010, 11:19 AM   #5
Hal Itosis
macrumors 6502a
 
Hal Itosis's Avatar
 
Join Date: Feb 2010
Quote:
Originally Posted by angelwatt View Post
But if you want to, just open Terminal and enter the following.
Code:
pico ~/.bashrc
FWIW, pico has been removed from OSX (since Tiger i believe) and replaced with nano.

Apple has provided a symlink, so that the "command" pico will still appear to function:
Code:
$ type -a nano pico
nano is /usr/bin/nano
pico is /usr/bin/pico

$ ls -l `whereis nano pico`
-rwxr-xr-x  1 root  wheel  297424 Sep 23  2007 /usr/bin/nano
lrwxr-xr-x  1 root  wheel       4 Mar 14  2009 /usr/bin/pico -> nano
__________________
-HI-
Hal Itosis is offline   0 Reply With Quote
Old Apr 18, 2010, 01:23 PM   #6
larkost
macrumors 6502a
 
Join Date: Oct 2007
Quote:
Originally Posted by Hal Itosis View Post
FWIW, pico has been removed from OSX (since Tiger i believe) and replaced with nano.

Apple has provided a symlink, so that the "command" pico will still appear to function
This is fairly standard in *nix's. nano was designed to be a drop-in replacement for pico, and you have to be pretty savy to tell them apart.
larkost is offline   0 Reply With Quote
Old Apr 18, 2010, 01:49 PM   #7
Hal Itosis
macrumors 6502a
 
Hal Itosis's Avatar
 
Join Date: Feb 2010
Quote:
Originally Posted by larkost View Post
This is fairly standard in *nix's. nano was designed to be a drop-in replacement for pico, and you have to be pretty savy to tell them apart.
I know what you mean, but i couldn't resist...
Code:
$ pico foo

GNU nano 2.0.1                 File: foo
_




                                [ New File ]
^G Get Help ^O WriteOut ^R Read File^Y Prev Page^K Cut Text ^C Cur Pos
^X Exit     ^J Justify  ^W Where Is ^V Next Page^U UnCut Tex^T To Spell
(at least that's what an OSX user gets)
__________________
-HI-
Hal Itosis is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Editing on old G5 marlon69 Digital Video 12 Jun 9, 2013 12:42 PM
Organising and Editing emdotdee Digital Video 4 Jan 4, 2013 02:26 PM
iPad Editing? micrors4racer Digital Photography 36 Oct 29, 2012 07:30 PM
rMBP: Editing video in iMovie, editing photos in Aperture - using Intel HD 4000 GPU? spaceballl MacBook Pro 1 Oct 26, 2012 07:42 AM
Photo Editing Bilalo Mac Applications and Mac App Store 10 Sep 6, 2012 11:43 AM

Forum Jump

All times are GMT -5. The time now is 06:22 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC