Allow local configuration for tmux

This commit is contained in:
Christian Treppo 2013-11-15 21:53:34 +00:00
parent 9c2804ba6e
commit e6fb396ff0
2 changed files with 11 additions and 4 deletions

View File

@ -178,6 +178,11 @@ It is recommended to use this file to set your user info. Alternately, you can s
A .gemrc is included. Never again type `gem install whatever --no-ri --no-rdoc`. `--no-ri --no-rdoc` is done by default. A .gemrc is included. Never again type `gem install whatever --no-ri --no-rdoc`. `--no-ri --no-rdoc` is done by default.
### Tmux configuration
`tmux.conf` provides some sane defaults for tmux on Mac OS, a powerful status bar and vim keybindings.
You can customize the configuration in `~/.tmux.conf.user`.
### Vimization of everything ### Vimization of everything
The provided inputrc and editrc will turn your various command line tools like mysql and irb into vim prompts. There's The provided inputrc and editrc will turn your various command line tools like mysql and irb into vim prompts. There's

View File

@ -4,7 +4,7 @@ set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value. # Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color set -g default-terminal screen-256color
# set -g default-terminal "screen-256color" # set -g default-terminal "screen-256color"
#
set-option -g default-command "reattach-to-user-namespace -l $SHELL -l" set-option -g default-command "reattach-to-user-namespace -l $SHELL -l"
# Keep your finger on ctrl, or don't # Keep your finger on ctrl, or don't
@ -29,7 +29,7 @@ set -g status-keys vi
# Use vi keybindings in copy and choice modes # Use vi keybindings in copy and choice modes
setw -g mode-keys vi setw -g mode-keys vi
#
# easily toggle synchronization (mnemonic: e is for echo) # easily toggle synchronization (mnemonic: e is for echo)
# sends input to all panes in a given window. # sends input to all panes in a given window.
bind e setw synchronize-panes on bind e setw synchronize-panes on
@ -72,4 +72,6 @@ bind C-a last-window
# Bigger history # Bigger history
set -g history-limit 10000 set -g history-limit 10000
#
# Local config
if-shell "[ -f ~/.tmux.conf.user ]" 'source ~/.tmux.conf.user'