From 746a37a140733a57ee6228b5bfbf3c373deaf494 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 28 Aug 2013 23:34:57 +1200 Subject: Hook prevents loading unwanted bash-completion This speeds up logins by a *lot* --- bash/bash_completion | 4 ++++ bash/bashrc | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 bash/bash_completion (limited to 'bash') diff --git a/bash/bash_completion b/bash/bash_completion new file mode 100644 index 00000000..b42dfd77 --- /dev/null +++ b/bash/bash_completion @@ -0,0 +1,4 @@ +# This file prevents bash-completion from loading from its /etc/profile.d +# script if installed +shopt -u progcomp + diff --git a/bash/bashrc b/bash/bashrc index 2501696f..f9b0e38d 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -61,6 +61,9 @@ shopt -u mailwarn 2>/dev/null # Ignore me if I try to complete an empty line shopt -s no_empty_cmd_completion 2>/dev/null +# Use programmable completion, if available +shopt -s progcomp 2>/dev/null + # Load any supplementary scripts if [[ -d $HOME/.bashrc.d ]]; then for config in "$HOME"/.bashrc.d/*; do -- cgit v1.2.3