1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

fix tmux loginShell option

This commit is contained in:
Daiderd Jordan 2016-11-05 00:08:20 +01:00
parent ccedaf9aea
commit efc38f72f9
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 4 additions and 5 deletions

View file

@ -42,7 +42,7 @@ let
serviceConfig.ProcessType = "Background";
};
programs.tmux.loginShell = "${pkgs.zsh}/bin/zsh";
programs.tmux.loginShell = "${pkgs.zsh}/bin/zsh -l";
programs.tmux.enableSensible = true;
programs.tmux.enableMouse = true;
programs.tmux.enableVim = true;
@ -148,11 +148,12 @@ in {
set bs=indent,start
set nowrap
set list
set listchars=tab:»·,trail:·,extends:,precedes:
set fillchars+=vert:\ ,stl:\ ,stlnc:\
set lazyredraw
set clipboard=unnamed
cmap <C-g> <Esc>

View file

@ -69,7 +69,7 @@ in {
programs.tmux.config = lib.concatStringsSep "\n" tmuxConfigs;
programs.tmux.text.login-shell = if stdenv.isDarwin then ''
set -g default-command "reattach-to-user-namespace -l ${cfg.loginShell}"
set -g default-command "reattach-to-user-namespace ${cfg.loginShell}"
'' else ''
set -g default-command "${cfg.loginShell}"
'';
@ -94,8 +94,6 @@ in {
# set -g status-utf8 on
# set -g utf8 on
'' + lib.optionalString stdenv.isDarwin ''
set -g default-command "reattach-to-user-namespace -l $SHELL"
'');
programs.tmux.text.mouse = mkIf cfg.enableMouse ''