aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-29 19:57:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-29 19:57:05 +0300
commit70965329d71deb8020cfb49f0015c6eb88b16e1f (patch)
tree8c143925dcc93e77b3f1eb1bd60496a6b40b9a1c /%HOME%
parentbugfix & code style (diff)
downloadlinux-home-70965329d71deb8020cfb49f0015c6eb88b16e1f.tar.gz
linux-home-70965329d71deb8020cfb49f0015c6eb88b16e1f.zip
disable bash completion on Ubuntu
It doesn't work well with either `nounset` or `nullglob`.
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.bashrc4
1 files changed, 3 insertions, 1 deletions
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