Skip to content

Commit

Permalink
add functionality for dynamic loading completions for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakobus Schürz committed Jun 21, 2023
1 parent 28cec11 commit 3cd5641
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/completion/pass.bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ _pass_complete_keys () {
_pass()
{
COMPREPLY=()
local COMPLETION_DIR=/usr/share/bash-completion/completions
for f in ${COMPLETION_DIR}/pass-*
do
. ${f}
done
local cur="${COMP_WORDS[COMP_CWORD]}"
local commands="init ls find grep show insert generate edit rm mv cp git help version ${PASSWORD_STORE_EXTENSION_COMMANDS[*]}"
if [[ $COMP_CWORD -gt 1 ]]; then
Expand Down

0 comments on commit 3cd5641

Please sign in to comment.