Skip to content

Commit ae548c6

Browse files
committedFeb 15, 2025
fix tmux default shell
nix-community/home-manager#5952
1 parent f432b35 commit ae548c6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed
 

‎home-manager/default.nix

+10-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
enable = true;
3333
interactiveShellInit = ''
3434
fish_vi_key_bindings
35+
36+
# start or attach to default tmux session
37+
if not set -q TMUX
38+
set -g TMUX tmux new-session -d -s default
39+
eval $TMUX
40+
tmux attach-session -d -t default
41+
end
3542
'';
3643
shellAbbrs = {
3744
j = "jj";
@@ -57,7 +64,6 @@
5764
prefix = "C-a";
5865
sensibleOnTop = true;
5966
plugins = with pkgs.tmuxPlugins; [
60-
sensible
6167
prefix-highlight
6268
vim-tmux-navigator
6369
catppuccin
@@ -68,6 +74,9 @@
6874
bind c new-window -c "#{pane_current_path}"
6975
bind '"' split-window -c "#{pane_current_path}"
7076
bind % split-window -h -c "#{pane_current_path}"
77+
78+
set -gu default-command
79+
set -g default-shell "$SHELL"
7180
'';
7281
};
7382

‎home-manager/nixvim/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
mapleader = " ";
88
};
99

10-
globalOpts = {
10+
opts = {
1111
number = true;
1212
relativenumber = true;
1313
shiftwidth = 2;

0 commit comments

Comments
 (0)
Failed to load comments.