aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/bashrc b/bashrc
index 25dbf00..37b5519 100644
--- a/bashrc
+++ b/bashrc
@@ -9,8 +9,11 @@ pathadd() {
pathadd ${HOME}/.local/bin
-DOTFILES_LOCATION=$(dirname $(readlink -f $HOME/.bashrc))
-export DOTFILES_LOCATION
+if [[ -z "$DOTFILES_LOCATION" ]]
+then
+ DOTFILES_LOCATION=$(dirname $(readlink -f $HOME/.bashrc))
+ export DOTFILES_LOCATION
+fi
pathadd ${DOTFILES_LOCATION}/bin