From ec170724e7c834bd6464b56325438ef785554747 Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Mon, 30 Dec 2024 15:23:35 +0100 Subject: [PATCH] tmux fix --- nix-darwin/home.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/nix-darwin/home.nix b/nix-darwin/home.nix index 4be45eb..4a9df16 100644 --- a/nix-darwin/home.nix +++ b/nix-darwin/home.nix @@ -255,9 +255,18 @@ mouse = true; terminal = "xterm-256color"; shell = "${pkgs.zsh}/bin/zsh"; - # If you need any tmux config to run before shell startup: + prefix = "C-s"; + keyMode = "vi"; extraConfig = '' - set -g default-command "${pkgs.zsh}/bin/zsh" + # Reload config with prefix + r + unbind r + bind r source-file ~/.config/tmux/tmux.conf + + # Vim-like pane navigation + bind-key h select-pane -L + bind-key j select-pane -D + bind-key k select-pane -U + bind-key l select-pane -R ''; };