diff options
| -rw-r--r-- | bashrc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |
