aboutsummaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-28 07:54:13 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-28 07:54:13 -0700
commit9dce275ab9c7dfe73c508f52fc2b3801c4c1bf0b (patch)
treeb5f7438f8509eee91a6504bcec0c0d7b1739b612 /users
parentadd MOTD for servers (diff)
downloadinfra-9dce275ab9c7dfe73c508f52fc2b3801c4c1bf0b.tar.gz
enable tmux
Diffstat (limited to 'users')
-rw-r--r--users/profiles/mac.nix1
-rw-r--r--users/programs/tmux.nix21
2 files changed, 22 insertions, 0 deletions
diff --git a/users/profiles/mac.nix b/users/profiles/mac.nix
index 8c281ac..f001f99 100644
--- a/users/profiles/mac.nix
+++ b/users/profiles/mac.nix
@@ -14,6 +14,7 @@
"${self}/users/programs/go.nix"
"${self}/users/programs/ssh.nix"
"${self}/users/programs/starship.nix"
+ "${self}/users/programs/tmux.nix"
./llm.nix
./secrets.nix
];
diff --git a/users/programs/tmux.nix b/users/programs/tmux.nix
new file mode 100644
index 0000000..9b84f5c
--- /dev/null
+++ b/users/programs/tmux.nix
@@ -0,0 +1,21 @@
+{ pkgs, ... }:
+{
+ programs.tmux = {
+ enable = true;
+ terminal = "xterm-256color";
+ escapeTime = 0;
+ aggressiveResize = true;
+ baseIndex = 1;
+ shortcut = "z";
+ clock24 = true;
+ shell = "${pkgs.fish}/bin/fish";
+ historyLimit = 50000; # Bigger buffer
+ extraConfig = ''
+ setw -g mouse on
+ # Avoid date/time taking up space
+ set -g status-right ""
+ set -g status-right-length 0
+ set-option -g renumber-windows on
+ '';
+ };
+}