handle missing bash_completions

pull/58/head v2.4.11-rc6
Simon Let 6 years ago
parent d3b1b84d38
commit 01ead29cea
  1. 3
      scripts/util.sh

@ -58,6 +58,9 @@ __resh_run_daemon() {
}
__resh_bash_completion_init() {
# primitive check to find out if bash_completions are installed
# skip completion init if they are not
_get_comp_words_by_ref >/dev/null 2>dev/null || return
local bash_completion_dir=~/.resh/bash_completion.d
# source user completion directory definitions
# taken from /usr/share/bash-completion/bash_completion

Loading…
Cancel
Save