Bundle version check only needed bundler installation check, other commands to be bound

This commit is contained in:
Sabarish Kumar R 2013-11-25 15:30:25 +05:30
commit 74927fbfe0

View file

@ -34,6 +34,10 @@ _run-with-bundler() {
if _bundler-installed; then if _bundler-installed; then
bundler_version=`bundle version | cut -d' ' -f3` bundler_version=`bundle version | cut -d' ' -f3`
else
bundler_version='0'
fi
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
if [[ "$(uname)" == 'Darwin' ]] if [[ "$(uname)" == 'Darwin' ]]
then then
@ -56,4 +60,3 @@ if _bundler-installed; then
compdef _$cmd bundled_$cmd=$cmd compdef _$cmd bundled_$cmd=$cmd
fi fi
done done
fi