From 7e95c3b667a1b353f8275db886203f272bfcce34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 10 Feb 2021 13:52:52 -0500 Subject: first commit --- hyperterm/core/autocomplete.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hyperterm/core/autocomplete.sh (limited to 'hyperterm/core/autocomplete.sh') diff --git a/hyperterm/core/autocomplete.sh b/hyperterm/core/autocomplete.sh new file mode 100644 index 0000000..90edb85 --- /dev/null +++ b/hyperterm/core/autocomplete.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# shellcheck disable=SC1091 +# bash completion on Hyperbola: pacman -S bash-completion +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi + +# Autocompletado +complete -cf sudo + +shopt -s cdspell +shopt -s checkwinsize +shopt -s cmdhist +shopt -s dotglob +shopt -s expand_aliases +shopt -s extglob +shopt -s histappend +shopt -s hostcomplete -- cgit v1.2.3