Mercurial > ec-dotfiles
changeset 372:ad07799cf765
Nuke all custom functions.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sat, 30 Jun 2012 23:24:04 +0700 |
parents | 38c7615caf9e |
children | e4e89f69453a |
files | rc/bashrc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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