-
Notifications
You must be signed in to change notification settings - Fork 152
/
Copy pathlaunch.lua
38 lines (35 loc) · 1.23 KB
/
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
33
34
35
36
37
38
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' } },
{ label = 'Nushell', args = { 'nu' } },
{ label = 'Msys2', args = { 'ucrt64.cmd' } },
{
label = 'Git Bash',
args = { 'C:\\Users\\kevin\\scoop\\apps\\git\\current\\bin\\bash.exe' },
},
}
elseif platform.is_mac then
options.default_prog = { '/opt/homebrew/bin/fish', '-l' }
options.launch_menu = {
{ label = 'Bash', args = { 'bash', '-l' } },
{ label = 'Fish', args = { '/opt/homebrew/bin/fish', '-l' } },
{ label = 'Nushell', args = { '/opt/homebrew/bin/nu', '-l' } },
{ label = 'Zsh', args = { 'zsh', '-l' } },
}
elseif platform.is_linux then
options.default_prog = { 'fish', '-l' }
options.launch_menu = {
{ label = 'Bash', args = { 'bash', '-l' } },
{ label = 'Fish', args = { 'fish', '-l' } },
{ label = 'Zsh', args = { 'zsh', '-l' } },
}
end
return options