diff 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
line wrap: on
line diff
--- a/rc/bashrc	Thu Jun 28 09:09:37 2012 +0700
+++ b/rc/bashrc	Sat Jun 30 23:24:04 2012 +0700
@@ -13,6 +13,9 @@
 
 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before"
 
+# Nuke currently defined functions
+unset -f $(set | grep -E ' ()$' | cut -d ' ' -f 1)
+
 _org_path="${PATH}"
 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
 # OpenJDK in pkgsrc