macOS fails to start wezTerm after using the configuration
saikete opened this issue ยท 1 comments
saikete commented
As the title, mac: 13.4
KevinSilvester commented
I had the same issue when I tried the config on my work laptop.
The issue is that the environment variables (such as PATH) only get redefined after a shell starts and reads its config.
So when you start wezterm
with a shell that isn't found in /usr/bin
, /usr/sbin
, /bin
/sbin
, the program just quits.
A simple fix for this is just pointing to where your shell binary is located. For example:
elseif platform.is_mac then
options.default_prog = { '/opt/homebrew/bin/fish' }
options.launch_menu = {
{ label = 'Bash', args = { 'bash' } },
{ label = 'Fish', args = { '/opt/homebrew/bin/fish' } },
{ label = 'Nushell', args = { '/opt/homebrew/bin/nu' } },
{ label = 'Zsh', args = { 'zsh' } },
}
end
Hope this solves the issue ๐