summaryrefslogtreecommitdiff
path: root/bash-completion/pass-bash-completion
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-09-08 02:06:57 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-08 02:06:57 +0200
commit00e44ed94b0e40345492bd513066ea2c50778c27 (patch)
treedb9637fc5fb28364cf81a275d2ec21075f456a13 /bash-completion/pass-bash-completion
parenta6129c9e45451e8c4082eee897ff1a94c1fe1bbd (diff)
downloadpass-00e44ed94b0e40345492bd513066ea2c50778c27.tar.gz
pass-00e44ed94b0e40345492bd513066ea2c50778c27.tar.bz2
pass-00e44ed94b0e40345492bd513066ea2c50778c27.zip
Move completion files to contrib.1.1.4
Diffstat (limited to 'bash-completion/pass-bash-completion')
-rw-r--r--bash-completion/pass-bash-completion32
1 files changed, 0 insertions, 32 deletions
diff --git a/bash-completion/pass-bash-completion b/bash-completion/pass-bash-completion
deleted file mode 100644
index 8ddc377..0000000
--- a/bash-completion/pass-bash-completion
+++ /dev/null
@@ -1,32 +0,0 @@
-# completion file for bash
-
-# (C) Copyright 2012 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
-# This is released under the GPLv2+. Please see COPYING for more information.
-
-_pass()
-{
- local cur prev prefix suffix gen
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
- prefix="$HOME/.password-store/"
- suffix=".gpg"
-
- if [[ $prev == --* ]]; then
- return 0
- fi
-
- for item in $(compgen -f $prefix$cur); do
- if [[ $item == $prefix.* ]]; then
- continue
- fi
- if [[ -d $item ]]; then
- item="$item/"
- fi
- item="${item%$suffix}"
- gen="$gen ${item#$prefix}"
- done
-
- COMPREPLY=( $gen )
-}
-complete -o filenames -o nospace -F _pass pass