Skip to content
Snippets Groups Projects
  1. Apr 22, 2014
    • Jason A. Donenfeld's avatar
      zsh-completion: only remove next char if / · f82e9d6c
      Jason A. Donenfeld authored
      
      From Kevin:
      
      I found a small bug in the zsh completions.  Basically when the
      PASSWORD_STORE_DIR ends in a slash the first character of the
      result is eaten, making completion essentially useless. (It does
      this before determining matches).
      
      This can be fixed by changing what is line 106 in my version from:
      
      _values -C 'passwords' $(find -L "$prefix" \( -name .git -o -name
      .gpg-id \) -prune -o $@ -print | sed -e "s#${prefix}.##" -e 's#\.gpg##'
      | sort)
      
      to
      
      _values -C 'passwords' $(find -L "$prefix" \( -name .git -o -name
      .gpg-id \) -prune -o $@ -print | sed -e "s#${prefix}/\\?##" -e
      's#\.gpg##' | sort)
      
      The difference is the first sed regex expression.  The original
      version assumed that the next character was a slash and removed
      it while the new version only removes it if it is a slash.
      
      "s#${prefix}.##" -> "s#${prefix}/\\?##"
      
      Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
      Reported-by: default avatarKevin Cox <kevincox@kevincox.ca>
      f82e9d6c
    • Jason A. Donenfeld's avatar
      Import Von's tests, with cleanups. · 760c644a
      Jason A. Donenfeld authored
      760c644a
    • Jason A. Donenfeld's avatar
      insert: exit with error if EOF · 07bcfcce
      Jason A. Donenfeld authored
      07bcfcce
  2. Apr 20, 2014
  3. Apr 19, 2014
  4. Apr 18, 2014
  5. Apr 17, 2014
  6. Apr 16, 2014
  7. Apr 15, 2014
Loading