Skip to content

Commit

Permalink
fix tmux default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
sloanelybutsurely committed Feb 15, 2025
1 parent f432b35 commit ae548c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion home-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -57,7 +64,6 @@
prefix = "C-a";
sensibleOnTop = true;
plugins = with pkgs.tmuxPlugins; [
sensible
prefix-highlight
vim-tmux-navigator
catppuccin
Expand All @@ -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"
'';
};

Expand Down
2 changes: 1 addition & 1 deletion home-manager/nixvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mapleader = " ";
};

globalOpts = {
opts = {
number = true;
relativenumber = true;
shiftwidth = 2;
Expand Down

0 comments on commit ae548c6

Please sign in to comment.