repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm/bugabinga/dotfiles_workspace.lua

Raw
local wez = require 'wezterm'

local is_win32 = wez.target_triple:match 'windows'
local dotfiles_path = is_win32 and 'W:/dotfiles' or wez.home_dir .. '/Workspace/dotfiles'

return function ( _ )
  wez.on( 'gui-startup', function ( cmd )
    local tab, pane, window = wez.mux.spawn_window( cmd or {
      workspace = 'dotfiles',
      cwd = dotfiles_path,
    } )

    local gui_window = window:gui_window();
    gui_window:maximize()
  end )
end