tm
is a small wrapper script that enhances tmate's usability and makes it easy to integrate with other tools.
Use tm
anywhere you would have used tmate
.
tm
This starts tmate
as a daemon as described on the tmate.io website and attaches a session.
# read-write address
tm address
=> ssh qRBbcBAQJcU5NazhagxewPVHh@ny.tmate.io
# read-only address
tm address-ro
=> ssh ro-C4b1hemhlJDqQxCnt07SdvyUq@ny2.tmate.io
# html address
tm address-html
=> https://tmate.io/t/sww8BF5FrYnJi4iuw1d4qPsQl
# read-only html address
tm address-html
=> https://tmate.io/t/ro-C4b1hemhlJDqQxCnt07SdvyUq
If you're on OS X, add | pbcopy
to the above to easily copy your links.
tm slack channel someone
tm version
or tm -V
tm help
or tm -h
Any of these tmate
commands will work through tm
.
git clone https://github.com/bobbyno/tmate-wrapper.git
make install
This will create a symlink to /usr/local/bin/tm
.
To enable the slack
command, add a Slack Incoming Webhook
address as an environment variable in your .bashrc
or equivalent:
export SLACK_WEBHOOK=https://hooks.slack.com/services/xyz/123