Better support GPG migrations
After yet another unpleasant experience starting up GPG on a new system, I decided to encode my learnings and mistakes as aliases, functions, scripts, hoping to protect my future me from myself. Fingers crossed!
This commit is contained in:
parent
e774ce5d1c
commit
eaf42b68c2
5 changed files with 64 additions and 21 deletions
|
|
@ -49,6 +49,12 @@ alias mdg="mix deps.get"
|
|||
alias mdu="mix deps.update"
|
||||
alias mdup="mix docker.up"
|
||||
|
||||
# GPG
|
||||
alias gpged='gpg --edit-key wpcarro@gmail.com'
|
||||
alias gpge='gpg --encrypt'
|
||||
alias gpgd='gpg --decrypt'
|
||||
alias gpgls='gpg --list-keys'
|
||||
|
||||
# Git
|
||||
alias g="git"
|
||||
alias glp='git log --graph --pretty=format:"%Cred%h%Creset -%Cblue %an %Creset - %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset" --abbrev-commit --date=relative'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
export TERMINAL=urxvtc
|
||||
export EDITOR=emacsclient
|
||||
export ALTERNATE_EDITOR=nvim
|
||||
export GPG_TTY=$(tty) # "It is important that this environment variable always reflects the output of the tty command". Source: https://gnupg.org/documentation/manuals/gnupg-devel/Invoking-GPG_002dAGENT.html
|
||||
|
||||
BROWSER=google-chrome
|
||||
NIXIFY="$HOME/programming/nixify"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue