Skip to content

Commit

Permalink
feat(home): add basic tmux setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle committed Dec 15, 2024
1 parent e5b793e commit 801a3aa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ in
./shell.nix
./ssh.nix
./sway/default.nix
./tmux.nix
./vscode.nix
];

Expand Down
25 changes: 25 additions & 0 deletions home/tmux.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
programs.tmux = {
enable = true;
keyMode = "vi";
extraConfig = ''
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
'';
};

programs.zsh.prezto = {
enable = false;
tmux = {
autoStartLocal = false;
autoStartRemote = false;
defaultSessionName = "auto";
};
};
}

0 comments on commit 801a3aa

Please sign in to comment.