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/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
|
||||||
|
3
.config/fish/functions/p.fish
Normal file
3
.config/fish/functions/p.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function p
|
||||||
|
/usr/bin/gpg --decrypt --quiet ~/.password.enc | xclip -rmlastnl -selection clipboard
|
||||||
|
end
|
4
.config/fish/functions/up.fish
Normal file
4
.config/fish/functions/up.fish
Normal 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
|
Loading…
Reference in New Issue
Block a user