We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Tired of having to type base/scripts/*.sh each time you want to call a script? Put the following in your .bash_profile:
function _rap() { local cur prev opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" if [ ! -d base/scripts ]; then return 0 fi opts=$( cd base/scripts > /dev/null ; echo * ) if [[ ${prev} == "rap" ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 fi } function rap() { script_name=$1 shift "./base/scripts/$script_name" "$@" } complete -F _rap rap
Now you can just type rap , hit tab and the rest will autocomplete.
rap
There was an error while loading. Please reload this page.