Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: adding to the PATH, .bashrc editting< Next Oldest | Next Newest >
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Jan. 13 2005,10:16 QUOTE

Hello y'all,

this is part of my ~/.bashrc:

export PATH=/home/dsl/dist/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games:.:.
export LD_LIBRARY_PATH=/home/dsl/dist/lib

(Funny thing is: there is no /home/dsl/dist/bin but that's not my question)

My question: i want to add to the path (i keep my scripts at: /cdrom/keep/scriptjes which i want to 'find' more easily. Right now i have to type in the whole patch in a term).


How? Where in the line? (back/front)


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Jan. 13 2005,11:53 QUOTE

Tried it, worked...

--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 13 2005,14:11 QUOTE

Good. :D

Each path is separated by a colon, and they are searched in the order they are listed in the PATH variable, so if you have a 'ls' command in /cdrom/keep/scriptjes that you want to use as default, then /cdrom/keep/scriptjes should be first in the list so your personal version is found first.

Also, setting PATH in your personal bash configuration doesn't usually require such a long string.  Most of those paths are already set in /etc/profile, so they can be replaced with "$PATH":
export PATH="/cdrom/keep/scriptjes:$PATH"


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
2 replies since Jan. 13 2005,10:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: adding to the PATH

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code