Add gnupg.
This commit is contained in:
5
gnupg/dirmngr.conf
Normal file
5
gnupg/dirmngr.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
keyserver hkps://hkps.pool.sks-keyservers.net
|
||||||
|
hkp-cacert ~/.gnupg/sks-keyservers.netCA.pem
|
||||||
|
|
||||||
|
disable-ldap
|
||||||
|
disable-http
|
||||||
9
gnupg/gpg-agent.conf
Normal file
9
gnupg/gpg-agent.conf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
default-cache-ttl 3600
|
||||||
|
default-cache-ttl-ssh 3600
|
||||||
|
|
||||||
|
max-cache-ttl 86400
|
||||||
|
max-cache-ttl-ssh 86400
|
||||||
|
|
||||||
|
enable-ssh-support
|
||||||
|
|
||||||
|
pinentry-program /usr/bin/pinentry-qt
|
||||||
26
gnupg/gpg.conf
Normal file
26
gnupg/gpg.conf
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
openpgp
|
||||||
|
|
||||||
|
no-greeting
|
||||||
|
|
||||||
|
no-comments
|
||||||
|
no-emit-version
|
||||||
|
|
||||||
|
keyid-format 0xlong
|
||||||
|
with-fingerprint
|
||||||
|
|
||||||
|
no-escape-from-lines
|
||||||
|
|
||||||
|
display-charset utf-8
|
||||||
|
|
||||||
|
fixed-list-mode
|
||||||
|
|
||||||
|
verify-options show-uid-validity
|
||||||
|
list-options show-uid-validity
|
||||||
|
|
||||||
|
no-mangle-dos-filenames
|
||||||
|
|
||||||
|
keyserver-options no-honor-keyserver-url no-auto-key-retrieve
|
||||||
|
|
||||||
|
personal-digest-preferences SHA512 SHA384 SHA256
|
||||||
|
cert-digest-algo SHA512
|
||||||
|
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
|
||||||
24
zsh/zprofile
24
zsh/zprofile
@@ -1,5 +1,3 @@
|
|||||||
# exec startx breaks some logind fuckery, without exec it works
|
|
||||||
#tmux start-server &
|
|
||||||
_path=("$HOME/bin"
|
_path=("$HOME/bin"
|
||||||
"/usr/local/sbin"
|
"/usr/local/sbin"
|
||||||
"/usr/local/bin"
|
"/usr/local/bin"
|
||||||
@@ -28,11 +26,21 @@ export WINEPATH="/media/hdd1/games/wine"
|
|||||||
export LOGDIR="$HOME/.var/log"
|
export LOGDIR="$HOME/.var/log"
|
||||||
export RUNDIR="$HOME/.var/run"
|
export RUNDIR="$HOME/.var/run"
|
||||||
|
|
||||||
if [[ -z "$SSH_CONNECTION" ]] ; then
|
# Start the gpg-agent if not already running
|
||||||
if ! pgrep ssh-agent --uid $USER >/dev/null 2>&1 ; then
|
if ! pgrep -x --uid "${USER}" gpg-agent >/dev/null 2>&1; then
|
||||||
eval $(ssh-agent -s)
|
gpg-connect-agent /bye >/dev/null 2>&1
|
||||||
fi
|
|
||||||
|
|
||||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set SSH to use gpg-agent
|
||||||
|
unset SSH_AGENT_PID
|
||||||
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||||
|
export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set GPG TTY
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||||
|
|
||||||
|
# exec startx breaks some logind fuckery, without exec it works
|
||||||
|
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx
|
||||||
|
|||||||
Reference in New Issue
Block a user