From fc2284b0e01cc09988487d4dcfbdfbdc156c06be Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 18 Oct 2012 16:57:52 +0200 Subject: main: unset DIR after start new executions should not inherit the DIR parameter from the parent environment, so unset the variable after using it --- bashrc/main.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc/main.sh b/bashrc/main.sh index e5ba2d6..e2075fd 100644 --- a/bashrc/main.sh +++ b/bashrc/main.sh @@ -12,6 +12,7 @@ declare -r _BASHRC_DIR="${_DOTFILES_DIR}/bashrc" # start in home dir if [[ -n "${DIR}" ]]; then cd "${DIR}" + unset DIR else cd "${HOME}" fi -- cgit v1.2.3