summaryrefslogtreecommitdiff
path: root/src/completion
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/completion/pass.bash-completion7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/completion/pass.bash-completion b/src/completion/pass.bash-completion
index c6a2f4b..d80b186 100644
--- a/src/completion/pass.bash-completion
+++ b/src/completion/pass.bash-completion
@@ -59,12 +59,13 @@ _pass()
local cur="${COMP_WORDS[COMP_CWORD]}"
local commands="init ls show insert generate edit rm git help version"
if [[ $COMP_CWORD -gt 1 ]]; then
+ local lastarg="${COMP_WORDS[$COMP_CWORD-1]}"
case "${COMP_WORDS[1]}" in
init)
- COMPREPLY+=($(compgen -W "-e --reencrypt -p --path" -- ${cur}))
- if [[ ${COMP_WORDS[$COMP_CWORD-1]} == "-p" || ${COMP_WORDS[$COMP_CWORD-1]} == "--path" ]]; then
+ if [[ $lastarg == "-p" || $lastarg == "--path" ]]; then
_pass_complete_folders
else
+ COMPREPLY+=($(compgen -W "-e --reencrypt -p --path" -- ${cur}))
_pass_complete_keys
fi
;;
@@ -88,7 +89,7 @@ _pass()
_pass_complete_entries
;;
git)
- COMPREPLY+=($(compgen -W "init push pull config log reflog" -- ${cur}))
+ COMPREPLY+=($(compgen -W "init push pull config log reflog rebase" -- ${cur}))
;;
esac
else
href='/others/pass.git/commit/Makefile?h=1.7.4&id=58f972ef71506d1ba83970196bcc2a71a2b11889&follow=1'>makefile: use install -d instead of mkdir -pJason A. Donenfeld1-7/+7 2014-04-24Indent using spacesSvend Sorensen1-11/+11 2014-04-24tests: remember to escape $Jason A. Donenfeld1-1/+1 2014-04-24Use die function instead of boring if else everywhere.Jason A. Donenfeld1-69/+23 2014-04-24version: bump1.6.1Jason A. Donenfeld1-1/+1 2014-04-24Makefile: osx/bsd does not support -DJason A. Donenfeld2-25/+25 2014-04-24show: error out if password store is empty.Jason A. Donenfeld1-1/+4 2014-04-24find: proper segmenting of terms1.6Jason A. Donenfeld1-3/+3 2014-04-24dmenu: hide outputJason A. Donenfeld1-1/+1 2014-04-24tests: test for spacesJason A. Donenfeld3-8/+20 2014-04-24Move test instructions to INSTALL.Jason A. Donenfeld2-11/+18 2014-04-24tests: we don't use aggregate-resultsJason A. Donenfeld1-57/+0 2014-04-24Don't prompt for questions when stdin is not a tty.Jason A. Donenfeld3-7/+6 2014-04-24Allow overridable bash.Jason A. Donenfeld16-16/+16 2014-04-24dmenu: check for empty instead of ret codeJason A. Donenfeld1-1/+1 2014-04-24tests: sed doesn't like escaped chars on non-gnuJason A. Donenfeld1-1/+1 2014-04-24tests: run from anywhereJason A. Donenfeld13-4/+16 2014-04-24Turns out aliases were a bad idea.Jason A. Donenfeld14-95/+92 2014-04-24Make gpg_opts an array.Jason A. Donenfeld1-12/+12 2014-04-24Shellcheck errors.Jason A. Donenfeld1-6/+6 2014-04-24tests: todo updateJason A. Donenfeld1-25/+0