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;
interactiveShellInit = ''
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 = {
j = "jj";
@ -57,7 +64,6 @@
prefix = "C-a";
sensibleOnTop = true;
plugins = with pkgs.tmuxPlugins; [
sensible
prefix-highlight
vim-tmux-navigator
catppuccin
@ -68,6 +74,9 @@
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -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 = " ";
};
globalOpts = {
opts = {
number = true;
relativenumber = true;
shiftwidth = 2;