fish: functions: gp/gt: Use exact flag for fzf when using pass
This commit is contained in:
parent
26efe57ac9
commit
3279c97814
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
function gp --description "Copy password to clipboad with pass tessen"
|
function gp --description "Copy password to clipboad with pass tessen"
|
||||||
pass tessen
|
FZF_DEFAULT_OPTS="--exact --height 20 --prompt='pass: ' --reverse" pass tessen
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
function gt --description "Get TOTP token with pass-otp"
|
function gt --description "Get TOTP token with pass-otp"
|
||||||
if type -qf pass
|
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"
|
if test -n "$result"
|
||||||
pass otp -c totp/$result
|
pass otp -c totp/$result
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue