commit 77161af93c59e49bb3bec461653404eeae741f4f
parent 6cb4c03b6bc9195d8fa29da9d6d3b760e6b08d9b
Author: Anders Damsgaard <andersd@riseup.net>
Date: Thu, 19 Oct 2017 20:57:46 -0400
add ssh key to Keychain\ Access.app
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/links/bin/tmux-utility.sh b/links/bin/tmux-utility.sh
@@ -6,7 +6,11 @@ tmux has-session -t $SESSION
if [ $? != 0 ]
then
mpd ~/.mpd/mpd.conf
- ssh-add
+ if [ "$(uname)" = "Darwin" ]; then
+ ssh-add -K
+ else
+ ssh-add
+ fi
# Create new session, name it, name the window, detach
tmux new-session -s $SESSION -n misc -d