Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 17, 2010, 08: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, 09: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 17, 2010, 11:34 PM   #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, 12: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, 10: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, 12: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, 12: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
App to edit Song info... thirumalkumaran iPod touch 6 Jul 24, 2012 09:35 AM
Editing a multi-level .plist file adriweb iPhone/iPad Programming 7 Jan 15, 2011 11:39 AM
Dual-Channel Memory crucial for video editing? BreuerEditor Digital Video 2 Nov 10, 2010 10:16 AM
video editing help WoblierRex Digital Video 0 Nov 8, 2010 09:23 PM
The thread where you post your videos edited with your late 2010 MBA captjoe06 MacBook Air 2 Nov 4, 2010 03:53 PM


All times are GMT -5. The time now is 01:59 AM.

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

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