Configure tmux
This commit is contained in:
parent
e017135180
commit
29bbc1d85c
|
@ -82,6 +82,29 @@ lib.mkMerge [
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
fzf.keybindings = true;
|
fzf.keybindings = true;
|
||||||
|
tmux = {
|
||||||
|
aggressiveResize = true;
|
||||||
|
baseIndex = 0;
|
||||||
|
clock24 = true;
|
||||||
|
historyLimit = 50000;
|
||||||
|
terminal = "xterm-256color";
|
||||||
|
extraConfig = ''
|
||||||
|
# mouse control
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# focus events enabled for terminals that support them
|
||||||
|
set -g focus-events on
|
||||||
|
|
||||||
|
# open new tab in PWD
|
||||||
|
bind '"' split-window -c "#{pane_current_path}"
|
||||||
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# don't clear selection on copy
|
||||||
|
bind-key -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-no-clear
|
||||||
|
bind-key -Tcopy-mode-vi y send -X copy-selection-no-clear
|
||||||
|
'';
|
||||||
|
};
|
||||||
vim.defaultEditor = true;
|
vim.defaultEditor = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user