File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 10
10
# ~/.bash_profile. Personal aliases and functions should go into
11
11
# ~/.bashrc.
12
12
13
- # Enable extglob for exclusion synatxes
14
- shopt -s extglob
15
-
16
13
# Set up PATH and MANPATH
17
14
unset PATH MANPATH
18
15
_IFS='
19
16
' # $' \t\n'
20
17
IFS='
21
18
' # $'\n'
22
19
for pth in $( cat /etc/paths.d/._* /etc/paths /etc/paths.d/* ) ; do
23
- [ " ${pth: 0: 1} " != ' #' ] && PATH=" $PATH :$pth "
20
+ case " $pth " in \# * ) continue ;; esac
21
+ PATH=" $PATH :$pth "
24
22
done 2> /dev/null
25
23
26
24
for pth in $( cat /etc/manpaths.d/._* /etc/manpaths /etc/manpaths.d/* ) ; do
27
- [ " ${pth: 0: 1} " != ' #' ] && MANPATH=" $MANPATH :$pth "
25
+ case " $pth " in \# * ) continue ;; esac
26
+ MANPATH=" $MANPATH :$pth "
28
27
done 2> /dev/null
29
28
IFS=" $_IFS "
30
29
@@ -38,9 +37,11 @@ export HISTFILESIZE=4096
38
37
# Timezone variable $TZ, Wine and stuff alike need it.
39
38
export TZ=" $( readlink /etc/localtime | sed -e ' s/^\.\.//g' -e ' s@/usr/share/zoneinfo/@@' ) "
40
39
41
- # Source profile scripts, excluding csh scripts
42
- for script in /etc/profile.d/! (* .csh) ; do
43
- [ -r $script ] && . " $script "
40
+ # Source profile scripts
41
+ for script in /etc/profile.d/* ; do
42
+ # No! Go away, csh!
43
+ case " $script " in * .csh) continue ;; esac
44
+ [ -r " $script " ] && . " $script "
44
45
done
45
46
46
47
# Now to clean up
You can’t perform that action at this time.
0 commit comments