feat(shell): add tmux
This commit is contained in:
parent
32e96d011a
commit
9d43b837ff
3 changed files with 33 additions and 2 deletions
|
@ -90,6 +90,9 @@
|
|||
|
||||
# firenvim
|
||||
firenvim
|
||||
|
||||
# tmux
|
||||
vim-tmux-navigator
|
||||
];
|
||||
|
||||
withNodeJs = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
devenv
|
||||
difftastic
|
||||
|
@ -25,6 +24,7 @@
|
|||
./rsync.nix
|
||||
./shell_aliases.nix
|
||||
./starship.nix
|
||||
./tmux.nix
|
||||
./tree.nix
|
||||
./zoxide.nix
|
||||
./zsh.nix
|
||||
|
|
28
shell/tmux.nix
Normal file
28
shell/tmux.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{pkgs, ...}: {
|
||||
programs = {
|
||||
tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
keyMode = "vi";
|
||||
escapeTime = 0;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
tmux-colors-solarized
|
||||
vim-tmux-navigator
|
||||
{
|
||||
plugin = power-theme;
|
||||
extraConfig = ''
|
||||
set -g @tmux_power_theme "colour4"
|
||||
'';
|
||||
}
|
||||
];
|
||||
terminal = "xterm-256color";
|
||||
extraConfig = ''
|
||||
# Terminal overrides
|
||||
set-option -sa terminal-overrides ",xterm-256color:Tc"
|
||||
|
||||
# Reload tmux config to ensure theme is applied
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue