From e40fe3d663b3370ff69c33f540b11f38fb5197e2 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 17 May 2025 23:25:03 -0700 Subject: [PATCH] update tmuxrc and add zk, diffnav --- home/darwin/tmux/tmuxrc | 8 ++++++++ home/profiles/cli/default.nix | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/home/darwin/tmux/tmuxrc b/home/darwin/tmux/tmuxrc index bb748134..7a4ad142 100644 --- a/home/darwin/tmux/tmuxrc +++ b/home/darwin/tmux/tmuxrc @@ -13,6 +13,14 @@ set-option -g mouse on bind | split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" +# move between tabs using vim commands +bind-key -n C-h previous-window +bind-key -n C-l next-window + +# hide and restore panes +bind-key ! break-pane -d -n _hidden_pane +bind-key @ join-pane -s $.0 + # don't rename windows automatically set-option -g allow-rename off diff --git a/home/profiles/cli/default.nix b/home/profiles/cli/default.nix index fefef07a..de1c6b65 100644 --- a/home/profiles/cli/default.nix +++ b/home/profiles/cli/default.nix @@ -63,6 +63,8 @@ # ssb-patchwork pandoc taskwarrior-tui + zk + diffnav # llms (needs 24.11) aider-chat @@ -280,7 +282,7 @@ srch = "ns nixpkgs"; orch = "ns override"; nrb = "cd /tmp; sudo nixos-rebuild switch --flake '/home/anish/usr/helm#curve'; cd $OLDPWD"; - nrd = "cd /tmp; darwin-rebuild switch --flake /Users/anishlakhwara/usr/helm#Anishs-MacBook-Pro; cd $OLDPWD"; + nrd = "cd /tmp; NIXPKGS_ALLOW_UNFREE=1 darwin-rebuild switch --flake /Users/anishlakhwara/usr/helm#Anishs-MacBook-Pro --impure; cd $OLDPWD"; nrt = "cd /tmp; sudo nixos-rebuild test --flake '/home/anish/usr/helm#curve'; cd $OLDPWD"; ned = "cd /home/anish/usr/helm; vim; cd $OLDPWD"; ncd = "cd /home/anish/usr/helm";