Remove .profile messing with SSH_AUTH_SOCK to fix error
This commit is contained in:
+4
-8
@@ -86,11 +86,6 @@ fi
|
||||
|
||||
#alias sl="sl -laF"
|
||||
|
||||
# Set up ssh-agent socket under XDG if not already set
|
||||
if [ -d "$XDG_RUNTIME_DIR" ] && [ -z "$SSH_AUTH_SOCK" ]; then
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
fi
|
||||
|
||||
# Put flatpak apps in XDG
|
||||
if program_installed flatpak; then
|
||||
export XDG_DATA_DIRS="/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
|
||||
@@ -100,9 +95,10 @@ fi
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
|
||||
# Add SSH keys to agent if not already added
|
||||
## Find existing keys, supporting one layer of folder organization
|
||||
if program_installed ssh-add && program_installed ssh-agent && [ -n "$SSH_AUTH_SOCK" ]; then
|
||||
# Make sure ssh-agent is available
|
||||
if program_installed ssh-add && [ ! -z "$SSH_AUTH_SOCK" ] && [ -d "$SSH_AUTH_SOCK" ] > /dev/null 2&>1 ; then
|
||||
# Add SSH keys to agent if not already added
|
||||
## Find existing keys, supporting one layer of folder organization
|
||||
public_keys=($(find "$HOME/.ssh/" -maxdepth 2 -name "*.pub"))
|
||||
if [ ${#public_keys[@]} -gt 0 ]; then
|
||||
for public_key in "${public_keys[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user