never going ro try niri again for sure

This commit is contained in:
2025-09-30 16:43:59 +02:00
parent 012ff152c6
commit 0711646e38
7 changed files with 17 additions and 13 deletions

View File

@@ -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