fix tmux default shell
https://github.com/nix-community/home-manager/issues/5952
This commit is contained in:
parent
f432b3513b
commit
ae548c612e
2 changed files with 11 additions and 2 deletions
home-manager
|
@ -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"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
mapleader = " ";
|
mapleader = " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
globalOpts = {
|
opts = {
|
||||||
number = true;
|
number = true;
|
||||||
relativenumber = true;
|
relativenumber = true;
|
||||||
shiftwidth = 2;
|
shiftwidth = 2;
|
||||||
|
|
Loading…
Reference in a new issue