From: Iain Patterson Date: Tue, 31 Aug 2010 09:39:59 +0000 (+0100) Subject: Improved some find_working calls. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=30b0111715a489e7297baad3bb96531233304c56;p=profile.git Improved some find_working calls. Require vim --version to print something useful. Skip argument checks for certain find_working commands. --- diff --git a/.profile.d/diff.bashrc b/.profile.d/diff.bashrc index af307ce..61cda4f 100644 --- a/.profile.d/diff.bashrc +++ b/.profile.d/diff.bashrc @@ -1,4 +1,4 @@ -colordiff=$(find_working colordiff 2>/dev/null) +colordiff=$(find_working -A colordiff 2>/dev/null) if [ $? = 0 ]; then alias diff="$colordiff" fi diff --git a/.profile.d/pager.bashrc b/.profile.d/pager.bashrc index a138375..dbcb3d6 100644 --- a/.profile.d/pager.bashrc +++ b/.profile.d/pager.bashrc @@ -1,5 +1,5 @@ # 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 diff --git a/.profile.d/vim.bashrc b/.profile.d/vim.bashrc index 15b4008..930d200 100644 --- a/.profile.d/vim.bashrc +++ b/.profile.d/vim.bashrc @@ -1,4 +1,4 @@ -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"