From b8eaf893a47cb22d8307161278638a024b298eb6 Mon Sep 17 00:00:00 2001 From: Mark Woods Date: Wed, 30 Apr 2014 07:45:52 +0100 Subject: [PATCH] Skip rails completion if incompatible bash version --- bash/profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bash/profile b/bash/profile index 2c86b63..6ab9df6 100644 --- a/bash/profile +++ b/bash/profile @@ -37,7 +37,10 @@ if [ $SHELL = '/bin/bash' ]; then fi # rails command completion - source ~/dotfiles/bash/rails.bash + # TODO: try https://github.com/mernen/completion-ruby + if [ ${BASH_VERSINFO[0]} -ge 4 ]; then + source ~/dotfiles/bash/rails.bash + fi # rvm command completion if [ -r $rvm_path/scripts/completion ]; then