Skip to content

Commit

Permalink
move SHLVL check from 01_path to env
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfb committed Aug 15, 2008
1 parent 87d6e9d commit b834764
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 4 additions & 7 deletions 01_path
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Don't continually append to path for nested shells
if [[ $SHLVL == 1 ]]; then
# I want /opt/local/bin to take precedence
path=(/opt/local/bin $path)
# I want /opt/local/bin to take precedence
path=(/opt/local/bin $path)

# Allow MacPorts man pages
manpath=($manpath /opt/local/man)
fi
# Allow MacPorts man pages
manpath=($manpath /opt/local/man)
11 changes: 7 additions & 4 deletions env
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
mydir=`dirname $0`
# Don't re-env for nested shells
if [[ $SHLVL == 1 ]]; then
mydir=`dirname $0`

for f in $mydir/??_*; do
source $f
done
for f in $mydir/??_*; do
source $f
done
fi

0 comments on commit b834764

Please sign in to comment.