Skip to content

Instantly share code, notes, and snippets.

@bmorton
Forked from jin3110/tmux.sh
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmorton/73868209a14439472c14 to your computer and use it in GitHub Desktop.
Save bmorton/73868209a14439472c14 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Usage
# =====
# ~~~
# /opt/bin/tmux.sh [tmux args...]
# ~~~
#
# How to install tmux in CoreOS toolbox
# =====================================
# * `toolbox yum -y install tmux`
# * `sudo -s -H`
# * `mkdir -p /opt/bin`
# * `vi /opt/bin/tmux`
# * `chmod 755 /opt/bin/tmux`
# * To access `fleetctl` just add `--bind-ro=/usr/bin/fleetctl` to the list of bind-mounts in this script.
exec toolbox --bind=/run/docker.sock --bind-ro=/usr/bin/docker --bind-ro=/var/log/journal --bind-ro=/etc/machine-id tmux $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment