# My little tmux config. It's mostly stolen from [here][stolen tmux.conf]
#
# That weird character below (in window-status-current-format) needs
# patched fonts which you can get from [this fine place][patched fonts]
#
# [stolen tmux.conf]: https://gist.github.com/1689941#file_.tmux.conf
# [patched fonts]: https://github.com/Lokaltog/vim-powerline/wiki/Patched-fonts
set -g mouse on
set -g default-terminal "screen-256color"
set-option -g set-titles on
set-option -g set-titles-string "[#I] #W #T"
set-option -g history-limit 1000000
set -g status off
bind-key f set -g status
bind-key c neww -c "#{pane_current_path}"
bind-key -n M-1 select-window -t 0
bind-key -n M-2 select-window -t 1
bind-key -n M-3 select-window -t 2
bind-key -n M-4 select-window -t 3
bind-key -n M-5 select-window -t 4
bind-key -n M-6 select-window -t 5
bind-key -n M-7 select-window -t 6
bind-key -n M-8 select-window -t 7
bind-key -n C-PageUp select-window -t:-1
bind-key -n C-PageDown select-window -t:+1
bind-key -n C-T new-window -c "#{pane_current_path}"
bind-key -n C-S split-window -v\; resize-pane -y 20
set -g status-keys emacs
bind-key -T copy-mode-vi ? command-prompt -i -I "#{pane_search_string}" -p "(search up)" "send -X search-backward-incremental \"%%%\""
bind-key -T copy-mode-vi / command-prompt -i -I "#{pane_search_string}" -p "(search down)" "send -X search-forward-incremental \"%%%\""
unbind-key -T root MouseDrag1Pane
bind-key r source-file ~/.tmux.conf
|