gpg xdg
This commit is contained in:
parent
b5b64276d7
commit
9b57787673
5 changed files with 29 additions and 6 deletions
10
shell/bashrc
10
shell/bashrc
|
@ -16,11 +16,11 @@ PATH="$HOME/.local/bin${PATH:+:${PATH}}"
|
|||
#PATH="/usr/local/plan9/bin${PATH:+:${PATH}}"
|
||||
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
bind "set completion-ignore-case on"
|
||||
|
|
|
@ -19,6 +19,7 @@ export \
|
|||
CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv" \
|
||||
WINEPREFIX="$HOME/.local/share/wine" \
|
||||
WGETRC="$HOME/.config/wget/wgetrc" \
|
||||
GNUPGHOME="$XDG_DATA_HOME/gnupg" \
|
||||
GOPATH="$XDG_DATA_HOME/go" \
|
||||
|
||||
export \
|
||||
|
|
14
systemd/user/gpg-agent-extra.socket
Normal file
14
systemd/user/gpg-agent-extra.socket
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=GnuPG cryptographic agent and passphrase cache (restricted)
|
||||
Documentation=man:gpg-agent(1)
|
||||
|
||||
[Socket]
|
||||
ListenStream=$(gpgconf --list-dirs socketdir)
|
||||
FileDescriptorName=extra
|
||||
Service=gpg-agent.service
|
||||
SocketMode=0600
|
||||
DirectoryMode=0700
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
|
9
systemd/user/gpg-agent.service
Normal file
9
systemd/user/gpg-agent.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=GnuPG cryptographic agent and passphrase cache
|
||||
Documentation=man:gpg-agent(1)
|
||||
Requires=gpg-agent.socket
|
||||
|
||||
[Service]
|
||||
Environment="GNUPGHOME=%h/.local/share/gnupg"
|
||||
ExecStart=/usr/bin/gpg-agent --supervised
|
||||
ExecReload=/usr/bin/gpgconf --reload gpg-agent
|
|
@ -33,7 +33,6 @@ set showcmd
|
|||
set number
|
||||
syntax on
|
||||
|
||||
|
||||
if (empty($TMUX) && getenv('TERM_PROGRAM') != 'Apple_Terminal')
|
||||
if (has("nvim"))
|
||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
|
|
Loading…
Reference in a new issue