fixes #343 by surrounding $HOME (which can have spaces) with quotations marks

This commit is contained in:
Benjamin Brombach
2015-04-21 16:17:38 +02:00
parent d0d6780a2f
commit 4510c9ee63
13 changed files with 23 additions and 23 deletions

View File

@@ -8,7 +8,7 @@
cite about-plugin
about-plugin 'node version manager, as a bash function'
export NVM_DIR=$HOME/.nvm
export NVM_DIR="$HOME/.nvm"
if [ ! -d "$NVM_DIR" ]; then
mkdir $NVM_DIR

View File

@@ -1,7 +1,7 @@
cite about-plugin
about-plugin 'load pipsi, if you are using it'
if [[ -f $HOME/.local/bin/pipsi ]]
if [[ -f "$HOME/.local/bin/pipsi" ]]
then
export PATH=~/.local/bin:$PATH
fi

View File

@@ -3,7 +3,7 @@
cite about-plugin
about-plugin 'load rvm, if you are using it'
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
# Check to make sure that RVM is actually loaded before adding
# the customizations to it.

View File

@@ -1,4 +1,4 @@
cite about-plugin
about-plugin 'sources tmuxinator script if available'
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && . $HOME/.tmuxinator/scripts/tmuxinator
[[ -s "$HOME/.tmuxinator/scripts/tmuxinator" ]] && . "$HOME/.tmuxinator/scripts/tmuxinator"

View File

@@ -536,7 +536,7 @@ shift $(($OPTIND - 1))
# defaults if not yet defined
TODOTXT_VERBOSE=${TODOTXT_VERBOSE:-1}
TODOTXT_PLAIN=${TODOTXT_PLAIN:-0}
TODOTXT_CFG_FILE=${TODOTXT_CFG_FILE:-$HOME/.todo/config}
TODOTXT_CFG_FILE=${TODOTXT_CFG_FILE:-"$HOME/.todo/config"}
TODOTXT_FORCE=${TODOTXT_FORCE:-0}
TODOTXT_PRESERVE_LINE_NUMBERS=${TODOTXT_PRESERVE_LINE_NUMBERS:-1}
TODOTXT_AUTO_ARCHIVE=${TODOTXT_AUTO_ARCHIVE:-1}

View File

@@ -11,7 +11,7 @@ autoenv_init()
typeset target home _file
typeset -a _files
target=$1
home="$(dirname $HOME)"
home="$(dirname "$HOME")"
_files=( $(
while [[ "$PWD" != "/" && "$PWD" != "$home" ]]