fish: functions: gp/gt: Use exact flag for fzf when using pass

This commit is contained in:
Sanchayan Maity 2022-12-25 13:07:12 +05:30
parent 26efe57ac9
commit 3279c97814
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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