summaryrefslogtreecommitdiff
path: root/src/completion/pass.fish-completion
diff options
context:
space:
mode:
Diffstat (limited to 'src/completion/pass.fish-completion')
-rw-r--r--src/completion/pass.fish-completion8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/completion/pass.fish-completion b/src/completion/pass.fish-completion
index 3e70af1..38a4865 100644
--- a/src/completion/pass.fish-completion
+++ b/src/completion/pass.fish-completion
@@ -6,11 +6,11 @@
set -l PROG 'pass'
function __fish_pass_get_prefix
- set -l prefix "$PASSWORD_STORE_DIR"
- if [ -z "$prefix" ]
- set prefix "$HOME/.password-store"
+ if set -q PASSWORD_STORE_DIR
+ realpath -- "$PASSWORD_STORE_DIR"
+ else
+ echo "$HOME/.password-store"
end
- echo "$prefix"
end
function __fish_pass_needs_command