Fix tmux on darwin
This commit is contained in:
parent
6023f7d96e
commit
32229b8ca1
|
@ -26,12 +26,18 @@ with lib; {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
aggressiveResize = true;
|
aggressiveResize = true;
|
||||||
extraConfig = ''
|
extraConfig = if pkgs.stdenv.isLinux then ''
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||||
set-option -g status-interval 1
|
set-option -g status-interval 1
|
||||||
set-option -g automatic-rename on
|
set-option -g automatic-rename on
|
||||||
set-option -g automatic-rename-format '#{pane_current_path}: #{pane_current_command}'
|
set-option -g automatic-rename-format '#{pane_current_path}: #{pane_current_command}'
|
||||||
|
'' else ''
|
||||||
|
set -g default-terminal "screen-256color"
|
||||||
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||||
|
set-option -g status-interval 1
|
||||||
|
set-option -g automatic-rename on
|
||||||
|
set-option -g automatic-rename-format '#{pane_current_path}: #{pane_current_command}'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue