configure tmux with home manager and create common home
This commit is contained in:
parent
61daca6d73
commit
b3ddb68f2b
6 changed files with 45 additions and 7 deletions
36
nix/home/yt/tmux.nix
Normal file
36
nix/home/yt/tmux.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
baseIndex = 1;
|
||||
historyLimit = 50000;
|
||||
keyMode = "emacs";
|
||||
mouse = false;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
yank
|
||||
tokyo-night-tmux
|
||||
{
|
||||
plugin = resurrect;
|
||||
extraConfig = "set -g @resurrect-capture-pane-contents 'on'";
|
||||
}
|
||||
{
|
||||
plugin = continuum;
|
||||
extraConfig = "set -g @continnum-restore 'on'";
|
||||
}
|
||||
];
|
||||
prefix = "C-f";
|
||||
sensibleOnTop = true;
|
||||
terminal = "tmux-256color";
|
||||
extraConfig = ''
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
bind u attach-session -c "#{pane_current_path}"
|
||||
bind v split-window -c "#{pane_current_path}" -h
|
||||
bind s split-window -c "#{pane_current_path}" -v
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue