Skip to content

Commit 98366b3

Browse files
committed
profile: path_helper now overrides the current PATH.
1 parent 0616e14 commit 98366b3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

profile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# ~/.bash_profile. Personal aliases and functions should go into
1111
# ~/.bashrc.
1212

13-
14-
export PATH MANPATH
13+
# Set up PATH and MANPATH
14+
unset PATH MANPATH
1515
_IFS='
1616
' # $' \t\n'
1717
IFS='
@@ -27,15 +27,16 @@ IFS="$_IFS"
2727

2828
: ${PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin}
2929
: ${MANPATH=/usr/share/man:/usr/local/share/man}
30+
export PATH MANPATH
3031

3132
# Setup some environment variables.
3233
export HISTFILESIZE=4096
3334

3435
# Timezone variable $TZ, Wine and stuff alike need it.
35-
export TZ="$(readlink /etc/localtime | sed 's/^\.\.//g' | sed "s/\/usr\/share\/zoneinfo\///")"
36+
export TZ="$(readlink /etc/localtime | sed -e 's/^\.\.//g' -e 's@/usr/share/zoneinfo/@@')"
3637

3738
for script in /etc/profile.d/* ; do
38-
[ -r $script ] && . $script
39+
[ -r $script ] && . "$script"
3940
done
4041

4142
# Now to clean up

0 commit comments

Comments
 (0)