Require vim --version to print something useful.
Skip argument checks for certain find_working commands.
-colordiff=$(find_working colordiff 2>/dev/null)
+colordiff=$(find_working -A colordiff 2>/dev/null)
if [ $? = 0 ]; then
alias diff="$colordiff"
fi
# profile-required: TERM.bashrc
-less=$(find_working less 2>/dev/null)
+less=$(find_working -A less 2>/dev/null)
if [ $? = 0 ]; then
export PAGER=less
export GIT_PAGER=$PAGER
-vim=$(find_working vim 2>/dev/null)
+vim=$(find_working -a --version vim 2>/dev/null)
if [ $? = 0 ]; then
if [ -n "$PROFILE_HOME" ]; then
VISUAL="$vim --cmd ':se rtp=$PROFILE_HOME/.vim,\$VIMRUNTIME' -u $PROFILE_HOME/.vimrc"