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 bfcef2d commit fa592a0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions home-manager/modules/wezterm.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, inputs, isLinux, ... }: {
{ pkgs, inputs, isLinux, isServer, ... }: {
home = {
packages = with pkgs; [ maple-mono ];
sessionVariables = { TERM = "wezterm"; };
Expand Down Expand Up @@ -191,7 +191,12 @@
key = 'n',
mods = 'META',
action = wezterm.action.SpawnCommandInNewTab({
args = { "fish" },
args = { ${
if isServer then
"'/run/current-system/sw/bin/fish'"
else
"wezterm.home_dir .. '/.nix-profile/bin/fish'"
} },
cwd = wezterm.home_dir,
}),
},
Expand Down

0 comments on commit fa592a0

Please sign in to comment.