Skip to content

Instantly share code, notes, and snippets.

@humus
Last active September 2, 2017 21:35
Show Gist options
  • Save humus/05ecf58c53ca234f196182053cbdac34 to your computer and use it in GitHub Desktop.
Save humus/05ecf58c53ca234f196182053cbdac34 to your computer and use it in GitHub Desktop.
Vim + Tmux env

Prerequisitos

- tmux > 1.6
- wemux master/3.2
- Linux shell

Entorno de avanzado de pair programming usando tmux (y wemux)

Preparar First Run de wemux

$ bindir=/home/vagrant/bin
$ mkdir -p $bindir
$ wget https://raw.githubusercontent.com/zolrath/wemux/master/wemux $bindir/wemux
$ chmod +x $bindir/wemux

$ chown -R vagrant:vagrant $bindir
$ wget https://raw.githubusercontent.com/zolrath/wemux/master/wemux.conf.example /usr/local/etc/wemux.conf
$ sed -i '/example: host_list/a host_list=(vagrant)' /usr/local/etc/wemux.conf

Arrancar wemux como usuario vagrant

$ wemux start

consola con otro usuario (en el ejemplo es tpair):

$ wemux rogue

Para enviar todo el contenido del pane a un archivo temporal, ejecutar como usuario tpair:

$ tmux pipe-pane 'cat > /tmp/cat-pane'

Para ver la consola del usuario tpair en la sesión del usuario vagrant:

$ tail -f /tmp/cat-pane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment