7 Commits

Author SHA1 Message Date
c55abb1bf7 fix(cli): doom.ps1: ParserError on $PATH
Fix: #8427
2025-06-26 03:54:59 +02:00
cdc9566d0b fix(cli): doom.ps1: malformed geometry in __DOOMGEOM 2025-06-25 17:36:59 +02:00
589fa73435 fix(lib): doom/reload: on Windows
- cmd.exe chokes on the space in "C:\Program Files\...", but more
  importantly, doom.ps1 should be invoked with powershell, not cmd.exe.
- Windows has pwsh.exe and powershell.exe, which, while not identical,
  are close enough for our purposes, but needed to be accounted for.

Fix: #8098
2025-06-25 17:36:59 +02:00
08abc7d698 refactor(cli): doom.ps1: simplify
Also ensures envvars persist into the after-script, and are cleared at
the correct time (and only once).
2024-09-10 00:06:17 -04:00
94a291a7f8 fix(cli): doom.ps1: path to post-script 2024-09-07 02:51:12 -04:00
61dc1da645 fix(cli): doom.ps1: interpolated variable in error message 2024-09-07 01:20:37 -04:00
8d2cf32fef feat(cli): add doom.ps1 for Windows users
c9acdb7 removes doom.cmd because it was broken in most cases. This adds
doom.ps1; an alternative script for Windows+Powershell users, which
properly initializes the state it needs. Naturally, it requires
Powershell 3+ be installed on your systems, but it can be invoked from
either cmd.exe or PowerShell.exe.

This is the first powershell script I've ever written, so I expect edge
cases (for one, shell commands passed to `exit!` will need to be guarded
against the environment).

This also requires emacs.exe be your $PATH, however, unless you set
$EMACS to its path first. E.g.

  $env:EMACS = "C:\Program Files\Emacs\emacs-29.4\bin\emacs.exe"

That said, if you use WSL2, you're still far better off using the bash
script (bin/doom).

Ref: c9acdb72a4
2024-09-07 01:05:57 -04:00