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? 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() { "./base/scripts/$1" } complete -F _rap rap
Now you can just type rap , hit tab and the rest will autocomplete.
rap