fixes #343 by surrounding $HOME (which can have spaces) with quotations marks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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" ]]
|
||||
|
||||
Reference in New Issue
Block a user