mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added missing FX and named colors to spectrum.
This commit is contained in:
parent
05c94e2dd5
commit
b65195156d
39 changed files with 57 additions and 16 deletions
|
|
@ -1,31 +0,0 @@
|
|||
# Based on ssh-agent code.
|
||||
|
||||
local GPG_ENV="$HOME/.gnupg/gpg-agent.env"
|
||||
|
||||
if (( ! $+commands[gpg-agent] )); then
|
||||
return
|
||||
fi
|
||||
|
||||
function _gpg-agent-start() {
|
||||
/usr/bin/env gpg-agent --daemon --enable-ssh-support --write-env-file "${GPG_ENV}" > /dev/null
|
||||
chmod 600 "${GPG_ENV}"
|
||||
source "${GPG_ENV}" > /dev/null
|
||||
}
|
||||
|
||||
# Source GPG agent settings, if applicable.
|
||||
if [[ -f "${GPG_ENV}" ]]; then
|
||||
source "${GPG_ENV}" > /dev/null
|
||||
ps -ef | grep "${SSH_AGENT_PID}" | grep gpg-agent > /dev/null || {
|
||||
_gpg-agent-start;
|
||||
}
|
||||
else
|
||||
_gpg-agent-start;
|
||||
fi
|
||||
|
||||
export GPG_AGENT_INFO
|
||||
export SSH_AUTH_SOCK
|
||||
export SSH_AGENT_PID
|
||||
|
||||
GPG_TTY=$(tty)
|
||||
export GPG_TTY
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue