Fix SSH agents startup script
This commit is contained in:
@@ -15,14 +15,14 @@ if [ "$IS_WSL" = true ]; then
|
|||||||
# We are in WSL - start keychain for ssh and gpg agents
|
# We are in WSL - start keychain for ssh and gpg agents
|
||||||
# Adjust these variables to your actual SSH and GPG key names
|
# Adjust these variables to your actual SSH and GPG key names
|
||||||
SSH_KEY="$HOME/.ssh/id_rsa_deadalus"
|
SSH_KEY="$HOME/.ssh/id_rsa_deadalus"
|
||||||
GPG_KEY=9DDD59AD62494FB2
|
#GPG_KEY=9DDD59AD62494FB2
|
||||||
|
|
||||||
# Check if keychain is installed
|
# Check if keychain is installed
|
||||||
if command -v keychain >/dev/null 2>&1; then
|
if command -v keychain >/dev/null 2>&1; then
|
||||||
SHORT_HOST=${SHORT_HOST:-${(%):-%m}}
|
SHORT_HOST=${SHORT_HOST:-${(%):-%m}}
|
||||||
|
|
||||||
# Start keychain quietly with no GUI prompts for ssh and gpg agents
|
# Start keychain quietly with no GUI prompts for ssh agents
|
||||||
eval "$(keychain --quiet --nogui --agents ssh,gpg $SSH_KEY $GPG_KEY)"
|
eval "$(keychain --quiet --nogui --agents ssh $SSH_KEY)"
|
||||||
|
|
||||||
# Get the filenames to store/lookup the environment from
|
# Get the filenames to store/lookup the environment from
|
||||||
_keychain_env_sh="$HOME/.keychain/$SHORT_HOST-sh"
|
_keychain_env_sh="$HOME/.keychain/$SHORT_HOST-sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user