|
#1
| ||||
| ||||
|
Hi, I have downloaded rar and stored under /application and I was wondering how can I set a path variable where I can invoke rar anywhere, and I am using bash if that makes a difference. Thank you! |
|
#2
| ||||
| ||||
| two tips
I believe that ~/bin is already part of the shell path. If you put rar in a folder called bin in your home directory then it will be found by the shell. (You may have to run the "rehash" command if the terminal is already open, although I don't think this command exists in bash.) I don't recommend dropping a bunch of unix binaries into your Applications folder. It's not really the appropriate place for them. /usr/local/bin or ~/bin is a wiser choice. That said, you can add other directories to your $path by adding a command like the following to a file called .bashrc in your home directory: export PATH=/Applications:$PATH Last edited by slur; July 25th, 2003 at 03:17 AM. |
|
#3
| ||||
| ||||
|
Thanks for your help.
|
|
#4
| ||||
| ||||
|
Create a .bashrc file in your home directory, in that file put: PATH=$PATH:/path/you/want/to/add export PATH That will add in /path/you/want/to/add to the search path. If the rar app is sitting in /Applications, add in: PATH=$PATH:/Applications export PATH Brian
__________________ UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Path Finder (ex-SNAX) - great Finder replacement | celeborn | Mac OS X System & Mac Software | 2 | January 18th, 2003 10:48 PM |
| Shell script to rip form variable names to a file? | michaelsanford | Bob's Place | 2 | November 15th, 2002 07:41 PM |
| TERM_PROGRAM: Undefined variable. | holmBrew | Unix & X11 | 9 | September 23rd, 2002 07:17 AM |
| Help! Trying to update the PATH variable info | yoyo1234 | Mac OS X System & Mac Software | 11 | August 28th, 2002 01:04 PM |
| troubles installing Perl modules with CPAN.pm | yogi | Mac OS X System & Mac Software | 7 | April 26th, 2002 11:38 AM |