]> git.pld-linux.org Git - projects/setup.git/commitdiff
- add /usr/X11R6/bin and $HOME/bin to PATH if missing
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 2 Nov 2000 17:21:23 +0000 (17:21 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 2 Nov 2000 17:21:23 +0000 (17:21 +0000)
Changed files:
    etc/profile -> 1.13

etc/profile

index 1322d2bb687953874377bd72ae77b32a4ebd72fb..27ea7697d62e7498d94b5c0d1f52abd7dacd73a7 100644 (file)
@@ -3,7 +3,8 @@
 # System wide environment and startup programs
 # Functions and aliases go into the shells dependent startup files
 
-PATH="$PATH:/usr/X11R6/bin"
+[ "`echo $PATH | grep -q /usr/X11R6/bin`" = "" ] && PATH="$PATH:/usr/X11R6/bin"
+[ "`echo $PATH | grep -q "$HOME/bin"`" = "" ] && PATH="$PATH:$HOME/bin"
 
 if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
        umask 002
This page took 0.060767 seconds and 4 git commands to generate.