MIAOU-BASH is a collection of scripts and configurations designed to enhance your terminal experience. As the name suggests, it is built on Bash and is designed to work on most modern GNU/Linux systems.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
389 B

function _miaou_bash {
local cur="${COMP_WORDS[COMP_CWORD]}"
if ((COMP_CWORD == 1)); then
if [[ $cur =~ ^- ]]; then
compopt -o nospace
mapfile -t COMPREPLY < <(compgen -W "--self-upgrade --version --help --uninstall" -- "$cur")
else
compopt -o filenames
mapfile -t COMPREPLY < <(compgen -f -- "$cur")
fi
fi
}
complete -F _miaou_bash "miaou-bash"