From 70965329d71deb8020cfb49f0015c6eb88b16e1f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 29 Oct 2016 19:57:05 +0300 Subject: disable bash completion on Ubuntu It doesn't work well with either `nounset` or `nullglob`. --- %HOME%/.bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index 5efe8d9..b285cc1 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -44,8 +44,10 @@ update_ruby_settings() { command -v ruby &> /dev/null \ && command -v gem &> /dev/null \ && user_dir="$( ruby -e 'print Gem.user_dir' )" \ - && add_path -- "$user_dir" \ + && add_path "$user_dir/bin" \ && export GEM_HOME="$user_dir" } update_ruby_settings + +[ "$( uname -o )" != 'Cygwin' ] && complete -r -- cgit v1.2.3