Skip to content

Instantly share code, notes, and snippets.

@Grissess
Created September 14, 2016 21:15
Show Gist options
  • Save Grissess/b646495ab520572fa2a7ec3a3b389489 to your computer and use it in GitHub Desktop.
Save Grissess/b646495ab520572fa2a7ec3a3b389489 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -n "$SSH_ORIGINAL_COMMAND" ] ; then
$SSH_ORIGINAL_COMMAND
else
tmux new -A -s "ssh"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment