Add two fish functions to encrypt and retrieve password via gpg
This commit is contained in:
parent
f2ba33ea9f
commit
4b5d1fc012
|
@ -5,4 +5,5 @@ function cache
|
|||
/usr/bin/go clean -modcache -cache -testcache
|
||||
/usr/bin/composer clear-cache
|
||||
/usr/bin/python -m pip cache purge
|
||||
/usr/bin/rm --recursive --force ~/.cache
|
||||
end
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
function p
|
||||
/usr/bin/gpg --decrypt --quiet ~/.password.enc | xclip -rmlastnl -selection clipboard
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
function up
|
||||
/usr/bin/gpg --yes --output ~/.password.enc --encrypt --recipient "EDIT HERE" ~/.password
|
||||
/usr/bin/rm --force ~/.password
|
||||
end
|
Loading…
Reference in New Issue