more care re: quotes and paths

This commit is contained in:
Michael Bradley, Jr 2018-08-20 17:57:29 -05:00
parent 9a2380c7da
commit ac25b34a93
2 changed files with 9 additions and 9 deletions

12
env/.bash_env vendored
View File

@ -1,6 +1,6 @@
unset BASH_ENV unset BASH_ENV
export PATH=${HOME}/.local/bin:$PATH export PATH="${HOME}/.local/bin:$PATH"
nac () { nac () {
local txtbld=$(tput bold) local txtbld=$(tput bold)
@ -17,7 +17,7 @@ nac () {
fi fi
__nvm_unload __nvm_unload
__denac __denac
. ${HOME}/.local/nodeenv/$1/bin/activate . "${HOME}/.local/nodeenv/$1/bin/activate"
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
__denac __denac
return 1 return 1
@ -72,11 +72,11 @@ export -f nvm_load
__nvm_load () { __nvm_load () {
__denac __denac
. ${HOME}/.nvm/nvm.sh &> /dev/null
__nvm_unload __nvm_unload
. "${HOME}/.nvm/nvm.sh" &> /dev/null
case $- in case $- in
*i*) bash-it enable completion nvm &> /dev/null; \ *i*) bash-it enable completion nvm &> /dev/null; \
. ${BASH_IT}/completion/available/nvm.completion.bash ;; . "${BASH_IT}/completion/available/nvm.completion.bash" ;;
esac esac
if [[ $(which node) = "${HOME}/.nvm/versions/"* ]]; then if [[ $(which node) = "${HOME}/.nvm/versions/"* ]]; then
__versions __versions
@ -99,8 +99,8 @@ __nvm_unload () {
export -f __nvm_unload export -f __nvm_unload
simple_nodeenv () { simple_nodeenv () {
pushd $PWD &> /dev/null pushd "$PWD" &> /dev/null
cd ${HOME}/.local/nodeenv cd "${HOME}/.local/nodeenv"
nodeenv --prebuilt --node "$@" nodeenv --prebuilt --node "$@"
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
popd &> /dev/null popd &> /dev/null

6
env/.bashrc vendored
View File

@ -1,10 +1,10 @@
. ${HOME}/.bash_env . "${HOME}/.bash_env"
. /usr/share/bash-completion/completions/git . /usr/share/bash-completion/completions/git
export BASH_IT=${HOME}/.bash_it export BASH_IT="${HOME}/.bash_it"
export BASH_IT_THEME="nodez" export BASH_IT_THEME="nodez"
. ${BASH_IT}/bash_it.sh . "${BASH_IT}/bash_it.sh"
alias nld0='npm ls --depth=0' alias nld0='npm ls --depth=0'
alias nlgd0='npm ls -g --depth=0' alias nlgd0='npm ls -g --depth=0'