Created
February 19, 2018 03:58
-
-
Save sveitser/5cb4d6f73f9ad99f0264f83e800ae47e to your computer and use it in GitHub Desktop.
pass-fish-complete-patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/completion/pass.fish-completion b/src/completion/pass.fish-completion | |
index c32a42c..8878acf 100644 | |
--- a/src/completion/pass.fish-completion | |
+++ b/src/completion/pass.fish-completion | |
@@ -45,9 +45,8 @@ end | |
function __fish_pass_print_entries | |
set -l prefix (__fish_pass_get_prefix) | |
set -l files | |
- eval "set files "$prefix"/**.gpg" | |
+ eval "set files (find "$prefix" -name '*.gpg' | sed 's#$prefix/\(.*\)\.gpg#\1#')" | |
for file in $files | |
- set file (echo "$file" | sed "s#$prefix/\(.*\)\.gpg#\1#") | |
echo "$file" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment