-
-
Save slumos/32f19c7b59d49f726f84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
SOCK_DIR=${HOME}/.ssh | |
SOCK_NAME=auth.sock | |
if [ -n "$SSH_AUTH_SOCK" ]; then | |
[ -d "$SOCK_DIR" ] || mkdir -m 0700 "$SOCK_DIR" | |
ln -nfs "$SSH_AUTH_SOCK" "$SOCK_DIR/$SOCK_NAME" | |
export SSH_AUTH_SOCK="$SOCK_DIR/$SOCK_NAME" | |
fi | |
#screen_command='screen -xRR' | |
screen_command="tmux attach" | |
exec $screen_command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment