forked from KevinSilvester/wezterm-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.lua
32 lines (29 loc) · 994 Bytes
/
launch.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
local platform = require('utils.platform')
local options = {
default_prog = {},
launch_menu = {},
}
if platform.is_win then
options.default_prog = { 'pwsh', '-NoLogo' }
options.launch_menu = {
{ label = 'PowerShell Core', args = { 'pwsh', '-NoLogo' } },
{ label = 'PowerShell Desktop', args = { 'powershell' } },
{ label = 'Command Prompt', args = { 'cmd' } },
}
elseif platform.is_mac then
options.default_prog = { '/usr/local/bin/zsh', '-l' }
options.launch_menu = {
{ label = 'Bash', args = { 'bash', '-l' } },
{ label = 'Fish', args = { 'fish', '-l' } },
{ label = 'Nushell', args = { 'nu', '-l' } },
{ label = 'Zsh', args = { 'zsh', '-l' } },
}
elseif platform.is_linux then
options.default_prog = { 'bash', '-l' }
options.launch_menu = {
{ label = 'Bash', args = { 'bash', '-l' } },
{ label = 'Fish', args = { 'fish', '-l' } },
{ label = 'Zsh', args = { 'zsh', '-l' } },
}
end
return options