Changeset d62ead3f for postlfs/config
- Timestamp:
- 08/18/2014 10:48:37 AM (10 years ago)
- Branches:
- 7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
- Children:
- af8842d9
- Parents:
- 7773ce16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/profile-systemd.xml
r7773ce16 rd62ead3f 162 162 done 163 163 164 uset script RED GREEN NORMAL 165 164 166 # End /etc/profile</literal> 165 167 EOF</userinput></screen> … … 214 216 </indexterm> 215 217 216 <para>This script adds several useful paths to the <envar>PATH</envar> and 217 <envar>PKG_CONFIG_PATH</envar> environment variables. If you want, you 218 can uncomment the last section to put a dot at the end of your path. This will 219 allow executables in the current working directory to be executed without 220 specifying a ./, however you are warned that this is generally considered a 221 security hazard.</para> 218 <para>This script adds some useful paths to the <envar>PATH</envar> and 219 can be used to customize other PATH related environment variables 220 (e.g. LD_LIBRARY_PATH, etc) that may be needed for all users.</para> 222 221 223 222 <screen role="root"><userinput>cat > /etc/profile.d/extrapaths.sh << "EOF" … … 230 229 if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then 231 230 pathprepend /usr/local/sbin 232 fi 233 234 if [ -d ~/bin ]; then 235 pathprepend ~/bin 236 fi 237 #if [ $EUID -gt 99 ]; then 238 # pathappend . 239 #fi</literal> 231 fi</literal> 240 232 EOF</userinput></screen> 241 233 … … 402 394 fi 403 395 396 unset RED GREEN NORMAL 397 404 398 # End /etc/bashrc</literal> 405 399 EOF</userinput></screen> … … 434 428 # System wide aliases and functions are in /etc/bashrc. 435 429 436 append () {437 # First remove the directory438 local IFS=':'439 local NEWPATH440 for DIR in $PATH; do441 if [ "$DIR" != "$1" ]; then442 NEWPATH=${NEWPATH:+$NEWPATH:}$DIR443 fi444 done445 446 # Then append the directory447 export PATH=$NEWPATH:$1448 }449 450 430 if [ -f "$HOME/.bashrc" ] ; then 451 431 source $HOME/.bashrc … … 453 433 454 434 if [ -d "$HOME/bin" ] ; then 455 append $HOME/bin 456 fi 457 458 unset append 435 pathprepend $HOME/bin 436 fi 437 438 # Having . in the PATH is dangerous 439 #if [ $EUID -gt 99 ]; then 440 # pathappend . 441 #fi 459 442 460 443 # End ~/.bash_profile</literal>
Note:
See TracChangeset
for help on using the changeset viewer.