From 3279c978149039dddbe11b17be73088bf083c6be Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 25 Dec 2022 13:07:12 +0530 Subject: [PATCH] fish: functions: gp/gt: Use exact flag for fzf when using pass --- fish/.config/fish/functions/gp.fish | 2 +- fish/.config/fish/functions/gt.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/.config/fish/functions/gp.fish b/fish/.config/fish/functions/gp.fish index 3de79e7..4eb1a63 100644 --- a/fish/.config/fish/functions/gp.fish +++ b/fish/.config/fish/functions/gp.fish @@ -1,3 +1,3 @@ function gp --description "Copy password to clipboad with pass tessen" - pass tessen + FZF_DEFAULT_OPTS="--exact --height 20 --prompt='pass: ' --reverse" pass tessen end diff --git a/fish/.config/fish/functions/gt.fish b/fish/.config/fish/functions/gt.fish index 3d4556b..45b2943 100644 --- a/fish/.config/fish/functions/gt.fish +++ b/fish/.config/fish/functions/gt.fish @@ -1,6 +1,6 @@ function gt --description "Get TOTP token with pass-otp" if type -qf pass - pass ls totp | fzf --ansi | sed 's/[^a-zA-Z0-9]//g' | read -l result + pass ls totp | fzf --ansi --exact | sed 's/[^a-zA-Z0-9]//g' | read -l result if test -n "$result" pass otp -c totp/$result end