about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-10-05 10:32:11 -0700
committerFranck Cuny <franck@fcuny.net>2024-10-05 10:32:11 -0700
commit667e476ccfdd9fee3b2bdf3c70b9e9b0746cef9f (patch)
tree81268964b518baedcd490e6a68b1dc7a9efa132b
parentremove a few scripts (diff)
downloadworld-667e476ccfdd9fee3b2bdf3c70b9e9b0746cef9f.tar.gz
enable tmux
-rw-r--r--nix/profiles/home-manager/shell.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nix/profiles/home-manager/shell.nix b/nix/profiles/home-manager/shell.nix
index f06f257..1e5d4b9 100644
--- a/nix/profiles/home-manager/shell.nix
+++ b/nix/profiles/home-manager/shell.nix
@@ -33,6 +33,27 @@
     self.packages.${pkgs.system}.git-broom
   ];
 
+  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
+    '';
+  };
+
   xdg = {
     configFile = {
       "aspell/config".text = ''