From ac25b34a9349fe8515f5f9332396e41ca219f857 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 20 Aug 2018 17:57:29 -0500 Subject: [PATCH] more care re: quotes and paths --- env/.bash_env | 12 ++++++------ env/.bashrc | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/env/.bash_env b/env/.bash_env index 5c62db7..1b6a0a4 100644 --- a/env/.bash_env +++ b/env/.bash_env @@ -1,6 +1,6 @@ unset BASH_ENV -export PATH=${HOME}/.local/bin:$PATH +export PATH="${HOME}/.local/bin:$PATH" nac () { local txtbld=$(tput bold) @@ -17,7 +17,7 @@ nac () { fi __nvm_unload __denac - . ${HOME}/.local/nodeenv/$1/bin/activate + . "${HOME}/.local/nodeenv/$1/bin/activate" if [[ $? != 0 ]]; then __denac return 1 @@ -72,11 +72,11 @@ export -f nvm_load __nvm_load () { __denac - . ${HOME}/.nvm/nvm.sh &> /dev/null __nvm_unload + . "${HOME}/.nvm/nvm.sh" &> /dev/null case $- in *i*) bash-it enable completion nvm &> /dev/null; \ - . ${BASH_IT}/completion/available/nvm.completion.bash ;; + . "${BASH_IT}/completion/available/nvm.completion.bash" ;; esac if [[ $(which node) = "${HOME}/.nvm/versions/"* ]]; then __versions @@ -99,8 +99,8 @@ __nvm_unload () { export -f __nvm_unload simple_nodeenv () { - pushd $PWD &> /dev/null - cd ${HOME}/.local/nodeenv + pushd "$PWD" &> /dev/null + cd "${HOME}/.local/nodeenv" nodeenv --prebuilt --node "$@" if [[ $? != 0 ]]; then popd &> /dev/null diff --git a/env/.bashrc b/env/.bashrc index 730e542..80e9da9 100644 --- a/env/.bashrc +++ b/env/.bashrc @@ -1,10 +1,10 @@ -. ${HOME}/.bash_env +. "${HOME}/.bash_env" . /usr/share/bash-completion/completions/git -export BASH_IT=${HOME}/.bash_it +export BASH_IT="${HOME}/.bash_it" export BASH_IT_THEME="nodez" -. ${BASH_IT}/bash_it.sh +. "${BASH_IT}/bash_it.sh" alias nld0='npm ls --depth=0' alias nlgd0='npm ls -g --depth=0'