never going ro try niri again for sure
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#!/bin/sh
|
||||
# shellcheck disable=SC1091
|
||||
# shellcheck disable=SC1091,SC1090
|
||||
|
||||
# `eval "$(ssh-init)"` to set up environment
|
||||
# variables for ssh agent in the current shell.
|
||||
# TIPS: `bass "$(ssh-init)"` case in fish
|
||||
|
||||
mkdir -p "$HOME/.local/state"
|
||||
agent_file="$HOME/.local/state/ssh-agent"
|
||||
@@ -18,10 +22,5 @@ if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||
eval "$(ssh-agent -s | tee "$agent_file")" > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
[ -f "$agent_file" ] && (
|
||||
cat "$agent_file"
|
||||
exit 0
|
||||
)
|
||||
fi
|
||||
|
||||
echo "true"
|
||||
[ -f "$agent_file" ] && cat "$agent_file"
|
||||
fi
|
||||
Reference in New Issue
Block a user