Skip to content

Commit

Permalink
Skip rails completion if incompatible bash version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Woods committed Apr 30, 2014
1 parent 68e8fae commit b8eaf89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bash/profile
Expand Up @@ -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
Expand Down

0 comments on commit b8eaf89

Please sign in to comment.