mirror of
https://github.com/acedanger/dotfiles.git
synced 2025-12-06 06:40:11 -08:00
58 lines
1.4 KiB
Lua
58 lines
1.4 KiB
Lua
local Icons = require "utils.class.icon"
|
|
local fs = require("utils.fn").fs
|
|
|
|
local Config = {}
|
|
|
|
if fs.platform().is_win then
|
|
Config.default_prog =
|
|
{ "pwsh", "-NoLogo", "-ExecutionPolicy", "RemoteSigned", "-NoProfileLoadTime" }
|
|
|
|
Config.launch_menu = {
|
|
{
|
|
label = Icons.Progs["pwsh.exe"] .. " PowerShell V7",
|
|
args = {
|
|
"pwsh",
|
|
"-NoLogo",
|
|
"-ExecutionPolicy",
|
|
"RemoteSigned",
|
|
"-NoProfileLoadTime",
|
|
},
|
|
cwd = "~",
|
|
},
|
|
{
|
|
label = Icons.Progs["pwsh.exe"] .. " PowerShell V5",
|
|
args = { "powershell" },
|
|
cwd = "~",
|
|
},
|
|
{ label = "Command Prompt", args = { "cmd.exe" }, cwd = "~" },
|
|
{ label = Icons.Progs["git"] .. " Git bash", args = { "sh", "-l" }, cwd = "~" },
|
|
}
|
|
|
|
-- ref: https://wezfurlong.org/wezterm/config/lua/WslDomain.html
|
|
Config.wsl_domains = {
|
|
{
|
|
name = "WSL:Ubuntu",
|
|
distribution = "Ubuntu",
|
|
username = "sravioli",
|
|
default_cwd = "~",
|
|
default_prog = { "bash", "-i", "-l" },
|
|
},
|
|
{
|
|
name = "WSL:Alpine",
|
|
distribution = "Alpine",
|
|
username = "sravioli",
|
|
default_cwd = "/home/sravioli",
|
|
},
|
|
}
|
|
end
|
|
|
|
Config.default_cwd = fs.home()
|
|
|
|
-- ref: https://wezfurlong.org/wezterm/config/lua/SshDomain.html
|
|
Config.ssh_domains = {}
|
|
|
|
-- ref: https://wezfurlong.org/wezterm/multiplexing.html#unix-domains
|
|
Config.unix_domains = {}
|
|
|
|
return Config
|