fix wezterm config file name
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
local wezterm = require("wezterm")
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
|
||||
-- Since WezTerm is now elevated, pwsh will automatically launch as admin inside it
|
||||
config.default_prog = { "pwsh.exe", "-NoLogo" }
|
||||
end
|
||||
config.keys = {
|
||||
-- Example - CTRL+SHIFT+U to open your WSL Ubuntu distribution
|
||||
{
|
||||
key = "U",
|
||||
mods = "CTRL|SHIFT",
|
||||
action = wezterm.action.SpawnCommandInNewTab({
|
||||
domain = { DomainName = "WSL:Ubuntu-24.04" },
|
||||
}),
|
||||
},
|
||||
|
||||
{
|
||||
key = "R",
|
||||
mods = "CTRL|SHIFT",
|
||||
action = wezterm.action.SpawnCommandInNewTab({
|
||||
domain = { DomainName = "WSL:fedoraremix" },
|
||||
}),
|
||||
},
|
||||
}
|
||||
return config
|
||||
@@ -1,9 +0,0 @@
|
||||
local wezterm = require 'wezterm'
|
||||
|
||||
return {
|
||||
color_scheme = 'Builtin Solarized Dark',
|
||||
font = wezterm.font('JetBrainsMono Nerd Font'),
|
||||
font_size = 11.0,
|
||||
default_prog = { 'pwsh.exe', '-NoLogo' },
|
||||
window_decorations = 'RESIZE',
|
||||
}
|
||||
@@ -42,7 +42,7 @@ type AssetDeployment struct {
|
||||
|
||||
func ConfigTargets(paths UserPaths) map[string]string {
|
||||
return map[string]string{
|
||||
"assets/wezterm.lua": filepath.Join(paths.Home, ".wezterm.lua"),
|
||||
"assets/.wezterm.lua": filepath.Join(paths.Home, ".wezterm.lua"),
|
||||
"assets/Microsoft.PowerShell_profile.ps1": filepath.Join(paths.Documents, "PowerShell", "Microsoft.PowerShell_profile.ps1"),
|
||||
"assets/jmr.omp.json": filepath.Join(paths.Home, ".config", "oh-my-posh", "jmr.omp.json"),
|
||||
}
|
||||
@@ -50,7 +50,7 @@ func ConfigTargets(paths UserPaths) map[string]string {
|
||||
|
||||
func DeployConfigAssets(paths UserPaths) ([]AssetDeployment, error) {
|
||||
targets := ConfigTargets(paths)
|
||||
order := []string{"assets/wezterm.lua", "assets/Microsoft.PowerShell_profile.ps1", "assets/jmr.omp.json"}
|
||||
order := []string{"assets/.wezterm.lua", "assets/Microsoft.PowerShell_profile.ps1", "assets/jmr.omp.json"}
|
||||
deployments := make([]AssetDeployment, 0, len(order))
|
||||
for _, name := range order {
|
||||
data, err := fs.ReadFile(managedAssets, name)
|
||||
|
||||
Reference in New Issue
Block a user