Skip to content

How to change the New Window action? #3878

Answered by wez
halostatue asked this question in Q&A
Discussion options

You must be logged in to vote

You can redefine the key assignment for new window to set the cwd explicitly:

config.keys = {
  { key = 'n', mods = 'CMD', action = wezterm.action.SpawnCommandInNewWindow { cwd=wezterm.home_dir } },
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@BatmanAoD
Comment options

@mwoodson
Comment options

@wez
Comment options

wez Dec 2, 2024
Maintainer

@mwoodson
Comment options

Answer selected by halostatue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants