Handle the case where HOME contains spaces, eg on NT 5.
Force the Vim runtime path to contain ~/.vim.
LC_ALL=C
# Source all scripts.
- for i in ~/.profile.d/*.bashrc; do . $i; done; unset i
+ for i in ~/.profile.d/*.bashrc; do . "$i"; done; unset i
# Maybe turn nocaseglob back on.
[ $nocg = 0 ] && shopt -s nocaseglob
#
# Location of the XXXdirs files.
-DIR=$HOME/.profile.d
+DIR="$HOME/.profile.d"
# Set one path to be the same as another.
function copypath() {
# Sanitise and export.
path="$(eval echo \$$oldpath)"
- [ -z "$path" ] || eval export $newpath="$path"
+ [ -z "$path" ] || eval "export $newpath='$path'"
unset path newpath oldpath
}
[ -z "$path" ] && return
# Export.
- eval export $newpath="$path"
+ eval "export $newpath='$path'"
unset path newpath dirs
}
" No compatibility mode.
se nocp
+" Find stuff.
+if has("win32")
+ se rtp=~/.vim,$VIMRUNTIME
+endif
+
" Tabstop 2.
se ts=2
" And use spaces not tabs.