Skip to content

Commit

Permalink
fix(wezterm): Fix new tab keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Aug 2, 2024
1 parent fa592a0 commit 9fad19d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions home-manager/modules/wezterm.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ pkgs, inputs, isLinux, isServer, ... }: {
{ pkgs, inputs, isLinux, ... }:
let fish_path_lua_str = "'${pkgs.fish}/bin/fish'";
in {
home = {
packages = with pkgs; [ maple-mono ];
sessionVariables = { TERM = "wezterm"; };
Expand Down Expand Up @@ -191,12 +193,7 @@
key = 'n',
mods = 'META',
action = wezterm.action.SpawnCommandInNewTab({
args = { ${
if isServer then
"'/run/current-system/sw/bin/fish'"
else
"wezterm.home_dir .. '/.nix-profile/bin/fish'"
} },
args = { ${fish_path_lua_str} },
cwd = wezterm.home_dir,
}),
},
Expand Down

0 comments on commit 9fad19d

Please sign in to comment.