Skip to content

Instantly share code, notes, and snippets.

@rroblak
Created March 9, 2015 04:15
Show Gist options
  • Save rroblak/97cfcca031178c19e192 to your computer and use it in GitHub Desktop.
Save rroblak/97cfcca031178c19e192 to your computer and use it in GitHub Desktop.
Tmux Configs
# Make vi keys work in copy/paste mode
setw -g mode-keys vi
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# Needed for notify-terminal to work
set-option -g default-command "reattach-to-user-namespace -l bash"
# ~/.tmuxinator/default.yml
name: default
root: ~/
# 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
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: logs
windows:
- bash:
- scratch:
layout: even-horizontal
panes:
- pry
- vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment