30 lines
644 B
Nix
30 lines
644 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.tmux = {
|
|
enable = true;
|
|
clock24 = true;
|
|
extraConfig = ''
|
|
set-option -g mouse on
|
|
set-option -g history-limit 50000
|
|
set -g default-shell "${pkgs.zsh}/bin/zsh"
|
|
set -g default-terminal "tmux-256color"
|
|
|
|
# split bindings: prefix+v = vertical split (side-by-side)
|
|
bind v split-window -h
|
|
|
|
# split bindings: prefix+h = horizontal split (top/bottom)
|
|
bind h split-window -v
|
|
|
|
# window navigation
|
|
bind -n M-n next-window
|
|
bind -n M-p previous-window
|
|
bind -n M-Tab last-window
|
|
|
|
# hide the status bar
|
|
set -g status off
|
|
|
|
'';
|
|
};
|
|
}
|