m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Improve fpass to attempt login if necessary

Jamie Schembri
2016-11-18 23:51:46 +01:00
parent 2b76e3e887
commit 30d4b45f9f

@@ -23,6 +23,14 @@ end
### LastPass CLI
```
function fpass -d "Fuzzy-find a Lastpass entry and copy the password"
if not lpass status -q
lpass login $EMAIL
end
if not lpass status -q
exit
end
lpass ls | fzf | string replace -r -a '.+\[id: (\d+)\]' '$1' | xargs lpass show -c --password
end
```