fix tmux default shell

https://github.com/nix-community/home-manager/issues/5952
This commit is contained in:
sloane 2025-02-15 16:01:20 -05:00
parent f432b3513b
commit ae548c612e
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ
2 changed files with 11 additions and 2 deletions
home-manager

View file

@ -32,6 +32,13 @@
enable = true; enable = true;
interactiveShellInit = '' interactiveShellInit = ''
fish_vi_key_bindings fish_vi_key_bindings
# start or attach to default tmux session
if not set -q TMUX
set -g TMUX tmux new-session -d -s default
eval $TMUX
tmux attach-session -d -t default
end
''; '';
shellAbbrs = { shellAbbrs = {
j = "jj"; j = "jj";
@ -57,7 +64,6 @@
prefix = "C-a"; prefix = "C-a";
sensibleOnTop = true; sensibleOnTop = true;
plugins = with pkgs.tmuxPlugins; [ plugins = with pkgs.tmuxPlugins; [
sensible
prefix-highlight prefix-highlight
vim-tmux-navigator vim-tmux-navigator
catppuccin catppuccin
@ -68,6 +74,9 @@
bind c new-window -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}" bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}"
set -gu default-command
set -g default-shell "$SHELL"
''; '';
}; };

View file

@ -7,7 +7,7 @@
mapleader = " "; mapleader = " ";
}; };
globalOpts = { opts = {
number = true; number = true;
relativenumber = true; relativenumber = true;
shiftwidth = 2; shiftwidth = 2;