comparison rc/bashrc @ 372:ad07799cf765

Nuke all custom functions.
author Edho Arief <edho@myconan.net>
date Sat, 30 Jun 2012 23:24:04 +0700
parents f26bc3818bf8
children 792b49cd912a
comparison
equal deleted inserted replaced
371:38c7615caf9e 372:ad07799cf765
10 else 10 else
11 return 11 return
12 fi 12 fi
13 13
14 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" 14 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before"
15
16 # Nuke currently defined functions
17 unset -f $(set | grep -E ' ()$' | cut -d ' ' -f 1)
15 18
16 _org_path="${PATH}" 19 _org_path="${PATH}"
17 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" 20 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
18 # OpenJDK in pkgsrc 21 # OpenJDK in pkgsrc
19 PATH="${PATH}:/usr/pkg/java/openjdk7/bin" 22 PATH="${PATH}:/usr/pkg/java/openjdk7/bin"