Skip to content

Commit b29cd17

Browse files
author
Jeff Bai
committed
profile: exclusion of csh scripts, #9
1 parent 49a043a commit b29cd17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

profile

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

13+
# Enable extglob for exclusion synatxes
14+
shopt -s extglob
15+
1316
# Set up PATH and MANPATH
1417
unset PATH MANPATH
1518
_IFS='
@@ -35,7 +38,8 @@ export HISTFILESIZE=4096
3538
# Timezone variable $TZ, Wine and stuff alike need it.
3639
export TZ="$(readlink /etc/localtime | sed -e 's/^\.\.//g' -e 's@/usr/share/zoneinfo/@@')"
3740

38-
for script in /etc/profile.d/* ; do
41+
# Source profile scripts, excluding csh scripts
42+
for script in /etc/profile.d/!(*.csh) ; do
3943
[ -r $script ] && . "$script"
4044
done
4145

0 commit comments

Comments
 (0)