Some gpg stuff
This commit is contained in:
parent
6bb9773b63
commit
75bfd598c2
2 changed files with 15 additions and 1 deletions
|
@ -17,6 +17,7 @@ if test -e ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
end
|
end
|
||||||
|
|
||||||
# PATH adjustment
|
# PATH adjustment
|
||||||
|
setpath /opt/homebrew/bin
|
||||||
setpath ~/.rbenv/shims
|
setpath ~/.rbenv/shims
|
||||||
setpath ~/.rbenv/bin
|
setpath ~/.rbenv/bin
|
||||||
setpath ~/.cargo/bin
|
setpath ~/.cargo/bin
|
||||||
|
@ -99,3 +100,13 @@ if command --search exa > /dev/null do
|
||||||
alias ls "exa"
|
alias ls "exa"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Some neat GPG shorthands
|
||||||
|
function secret
|
||||||
|
set output ~/$argv[1].(date +%s).enc
|
||||||
|
gpg --encrypt --armor --output $output $argv[1]; and echo "$argv[1] -> $output"
|
||||||
|
end
|
||||||
|
|
||||||
|
function reveal
|
||||||
|
set output (echo $argv[1] | rev | cut -c16- | rev)
|
||||||
|
gpg --decrypt --output $output $argv[1]; and echo "$argv[1] -> $output"
|
||||||
|
end
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[user]
|
[user]
|
||||||
name = mokou
|
name = mokou
|
||||||
email = mokou@posteo.de
|
email = mokou@fastmail.com
|
||||||
|
signingkey = 0x53A8BB015F9EAE63
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
[push]
|
[push]
|
||||||
|
@ -9,3 +10,5 @@
|
||||||
rebase = true
|
rebase = true
|
||||||
[rebase]
|
[rebase]
|
||||||
autoStash = true
|
autoStash = true
|
||||||
|
[sendemail]
|
||||||
|
smtpserver = /opt/homebrew/bin/msmtp
|
||||||
|
|
Loading…
Add table
Reference in a new issue