Add two fish functions to encrypt and retrieve password via gpg

This commit is contained in:
adrien 2022-01-28 16:42:13 +01:00
parent f2ba33ea9f
commit 4b5d1fc012
Signed by: adrien
GPG Key ID: 4F17BEA67707AC21
3 changed files with 8 additions and 0 deletions

View File

@ -5,4 +5,5 @@ function cache
/usr/bin/go clean -modcache -cache -testcache /usr/bin/go clean -modcache -cache -testcache
/usr/bin/composer clear-cache /usr/bin/composer clear-cache
/usr/bin/python -m pip cache purge /usr/bin/python -m pip cache purge
/usr/bin/rm --recursive --force ~/.cache
end end

View File

@ -0,0 +1,3 @@
function p
/usr/bin/gpg --decrypt --quiet ~/.password.enc | xclip -rmlastnl -selection clipboard
end

View File

@ -0,0 +1,4 @@
function up
/usr/bin/gpg --yes --output ~/.password.enc --encrypt --recipient "EDIT HERE" ~/.password
/usr/bin/rm --force ~/.password
end