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
}
_rnt () { # autocompletion
# Set
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -W "$(ls $RD_PATH)" -- $cur) )
compadd $(ls $RD_PATH)
}
complete -F _rnt rnt;
compdef _rnt rnt;
function refresh_rd_db() {
psql postgres -c "DROP DATABASE rentdynamics;"