Updated rnt autocompletion

This commit is contained in:
Wryn Wagner 2019-12-30 19:05:41 -07:00
parent 8662707319
commit 3a40e8c724

View File

@ -25,11 +25,9 @@ function rnt() {
fi fi
} }
_rnt () { # autocompletion _rnt () { # autocompletion
# Set compadd $(ls $RD_PATH)
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -W "$(ls $RD_PATH)" -- $cur) )
} }
complete -F _rnt rnt; compdef _rnt rnt;
function refresh_rd_db() { function refresh_rd_db() {
psql postgres -c "DROP DATABASE rentdynamics;" psql postgres -c "DROP DATABASE rentdynamics;"