From 30b0111715a489e7297baad3bb96531233304c56 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 31 Aug 2010 10:39:59 +0100 Subject: [PATCH] Improved some find_working calls. Require vim --version to print something useful. Skip argument checks for certain find_working commands. --- .profile.d/diff.bashrc | 2 +- .profile.d/pager.bashrc | 2 +- .profile.d/vim.bashrc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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" -- 2.7.4