diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2012-10-18 16:57:52 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2012-10-18 17:05:29 +0200 |
commit | fc2284b0e01cc09988487d4dcfbdfbdc156c06be (patch) | |
tree | 81687394c8cebb189570603d8305275f4a1fbc08 /bashrc | |
parent | 9e62ee704f364f9748c4cca5f230c27786d24dd2 (diff) | |
download | dotfiles-fc2284b0e01cc09988487d4dcfbdfbdc156c06be.tar.gz dotfiles-fc2284b0e01cc09988487d4dcfbdfbdc156c06be.tar.xz dotfiles-fc2284b0e01cc09988487d4dcfbdfbdc156c06be.zip |
main: unset DIR after start
new executions should not inherit the DIR parameter from the parent
environment, so unset the variable after using it
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc/main.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |