Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Created December 10, 2013 19:41
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 jansanchez/7896842 to your computer and use it in GitHub Desktop.
Save jansanchez/7896842 to your computer and use it in GitHub Desktop.
install tmux by @andru255

install tmux

  1. tmux ~$ sudo apt-get install tmux

  2. Para usar el tmuxinator se recomienda usar el rvm(ruby virtual machine) ya que tmuxinator es un gema ~$ curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3

  3. Al terminar de instalarlo instalamos luego el tmuxinator

~$ gem install tmuxinator

Nota 1: al haberlo instalado revisa lo que necesita el tmuxinator ejecutando el comando

~$ tmuxinator doctor

Nota 2: Luego de haber instalado asociamos sus alias tomando descargando el fuente de su repo https://github.com/aziz/tmuxinator se recomienda crear una carpeta en el home (~) para asociarlo luego a los archivos de configuracion de los terminales (.zsh / .bashrc)

  1. Si todo sale sin errores, en el terminal ejecutamos -$ mux open miproyecto

Al ejecutar ello toma el editor por defecto, en este caso es vim y edito mi archivo de configuracion:

~/.tmuxinator/miproyecto.yml

name: miproyecto root: ~/Projects/PHP/Zend2/miproyecto

Optional tmux socket

socket_name: foo

Runs before everything. Use it to start daemons etc.

pre: sudo /etc/rc.d/mysqld start

Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.

pre_window: rbenv shell 2.0.0-p247

Pass command line options to tmux. Useful for specifying a different tmux.conf.

tmux_options: -f ~/.tmux.mac.conf

Change the command to call tmux. This can be used by derivatives/wrappers like byobu.

tmux_command: byobu

windows:

  • editor: layout: main-horizontal panes: - vim - cd ~/Projects/PHP/Zend2/miproyecto #- guard #- server: bundle exec rails s

el archivo de configuración lo hice de esa manera para manejar 2 paneles una donde está el editor de trabajo y el otro el terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment