mirror of
https://github.com/acedanger/dotfiles.git
synced 2025-12-05 22:30:13 -08:00
copied profile
This commit is contained in:
57
wezterm/.config/config/general.lua
Normal file
57
wezterm/.config/config/general.lua
Normal file
@@ -0,0 +1,57 @@
|
||||
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
|
||||
Reference in New Issue
Block a user