mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-06-01 20:09:13 +02:00
BASH gpg-agent and password-storage, updated gitignore_global and script for x11 to vnc casting
This commit is contained in:
parent
ef2cbabe11
commit
0a85f3ba63
4 changed files with 115 additions and 37 deletions
15
bash/bash.d/gpg-agent
Normal file
15
bash/bash.d/gpg-agent
Normal file
|
@ -0,0 +1,15 @@
|
|||
# .bash_files
|
||||
|
||||
# Setup gpg agent info
|
||||
# if not running, set one up
|
||||
|
||||
GPG_AGENT_INFO="${HOME}/.gpg-agent-info"
|
||||
|
||||
if [ -f "${GPG_AGENT_INFO}" ]; then
|
||||
source "${GPG_AGENT_INFO}"
|
||||
export GPG_AGENT_INFO
|
||||
export SSH_AUTH_SOCK
|
||||
export SSH_AGENT_PID
|
||||
else
|
||||
/usr/bin/gpg-agent --daemon --write-env-file "${GPG_AGENT_INFO}"
|
||||
fi
|
15
bash/bash.d/password-storage
Normal file
15
bash/bash.d/password-storage
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Enable password-storage and its bash completion
|
||||
|
||||
PASSDIR="${DOTFILES}/password-storage"
|
||||
|
||||
# Only do this when the submodule is loaded
|
||||
if [ -d "${PASSDIR}/src" ]; then
|
||||
source "${PASSDIR}/src/completion/pass.bash-completion"
|
||||
|
||||
# If pass not registered as executable in your path
|
||||
# Make an alias
|
||||
if [[ $(command -v pass) ]]; then
|
||||
alias pass="${PASSDIR}/src/password-store.sh"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue