|# 0 is too far from ` ;)|
|set -g base-index 1|
|# Automatically set window title|
|set-window-option -g automatic-rename on|
|set-option -g set-titles on|
|#set -g default-terminal screen-256color|
|set -g status-keys vi|
|set -g history-limit 10000|
|setw -g mode-keys vi|
|setw -g mode-mouse on|
|setw -g monitor-activity on|
|bind-key v split-window -h|
|bind-key s split-window -v|
|bind-key J resize-pane -D 5|
|bind-key K resize-pane -U 5|
|bind-key H resize-pane -L 5|
|bind-key L resize-pane -R 5|
|bind-key M-j resize-pane -D|
|bind-key M-k resize-pane -U|
|bind-key M-h resize-pane -L|
|bind-key M-l resize-pane -R|
|# Vim style pane selection|
|bind h select-pane -L|
|bind j select-pane -D|
|bind k select-pane -U|
|bind l select-pane -R|
|# Use Alt-vim keys without prefix key to switch panes|
|bind -n M-h select-pane -L|
|bind -n M-j select-pane -D|
|bind -n M-k select-pane -U|
|bind -n M-l select-pane -R|
|# Use Alt-arrow keys without prefix key to switch panes|
|bind -n M-Left select-pane -L|
|bind -n M-Right select-pane -R|
|bind -n M-Up select-pane -U|
|bind -n M-Down select-pane -D|
|# Shift arrow to switch windows|
|bind -n S-Left previous-window|
|bind -n S-Right next-window|
|# No delay for escape key press|
|set -sg escape-time 0|
|# Reload tmux config|
|bind r source-file ~/.tmux.conf|
|set -g status-bg black|
|set -g status-fg white|
|set -g window-status-current-bg white|
|set -g window-status-current-fg black|
|set -g window-status-current-attr bold|
|set -g status-interval 60|
|set -g status-left-length 30|
|set -g status-left '#[fg=green](#S) #(whoami)'|
|set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'|
I'll need to see your Cucumber features and flog reports. On Tue, Sep 20, 2011 at 1:33 PM, Chad Humphries < email@example.com>wrote:…
The escape key is the default meta key in OS X, so you probably need to configure the above
This is the best?
Update: in newer versions of tmux mode-mouse and mode-mouse-[term] are all simply "mouse". I got an error and had to make the change per http://stackoverflow.com/questions/11832199/tmux-set-g-mouse-mode-on-doesnt-work and it worked like a charm
Updated tmux.conf forked here:
Hey guys, so in my build of iTerm 2 (3.0.15 though this has probably been the case for a while) there is no longer an option "[left/right] alt key acts as meta" though there is an option "When you press an arrow key or other function key that transmits the modifiers, should Option be translated to Meta?"
I suppose that explains why alt-arrow keys work for switching panes but alt-hjkl does not; hjkl do not count as "keys that transmit the modifiers". Escape will work for either, though, as it is the "Meta" key.
Hope this saves someone trying to figure out why the hell alt-hjkl isn't switching their panes :)
And hey if anyone knows a way around this please let me know
Thank you for this awesome tmux config and all comment.
I added this in my tmux config to open new pan|window with current pane path and it's change my life :).
work on tmux 2.6 :
Since tmux 2.9 the following options:
don't work anymore. They were renamed to
More precisely, the three replacement lines could be reduced to a single one:
@IanVaughan I have been experiencing the same issue on mac - it is explained here: https://askubuntu.com/questions/109293/editing-with-nano-alt-is-caught-by-the-window-menus-how-can-i-fix-that
I am not sure if there is a workaround but I am just going to stick with esc instead of alt in tmux for now
Most interesting. I should share my own .tmux.conf. :) In fact, tmux and tmuxinator is something I use all the time, and is an unbeatable combination.
In fact, I should not only share my tmux, but also my emacs config and bash setup. If anyone's interested, please let me know.
@schadha17 you could try this instead, provided you don't already use these keys within tmux:
Thank you for sharing! For those poor souls, like me, who have found themselves beating their heads against the wall (or other hard surfaces) after trying an unholy amounts [ and combinations ] of key bindings, including reserving to utilizing AutoHotKey scripts, while utilizing Windows Terminal - there is a cure!
You will have to un-bind the default actions from the key combinations in the settings.json. Example :
I am not sure if it works on all versions (in my case, version 1.2.2381.0). However, hopefully this tip will give the suffering individuals a direction at root of the cause => to check if their CLI/Terminal app is hijacking the commands.
Posted 9 years ago, and still the best game in town !
This conf. is almost perfect, it only needs the copy/paste feature, so for anybody reading this hopefully this spares you some time searching :
Pretty nice, but rescaling with