Skip to content

[pwsh profile] TODO New build script and key bindings #1

Description

@mawosoft
  • Add dynamically generated Get-ProfileHelp (gprh).
  • Replace old build script to build from more granular include scripts.
    Simplify parameters:
    • Drop dot-sourcing option.
    • Only allow scope selection for CurrentUser/AllUsers. Determine CurrentHost/AllHosts in the script if variants are necessary.
    • Add an option to just output the generated profile script without updating the profile itself.
  • Prepare for conditional includes targeting Windows PowerShell 5.1 vs. PowerShell.
  • Write generated profile only if changed.
  • Add key bindings for PSReadLine. Note that a fixed version of PSReadline is included with the VSCode PowerShell extensions and cannot be updated to the latest version.
    However, it is possible to copy the latest version from the original module path to %USERPROFILE%/.vscode/extensions/ms-vscode.powershell-2023.6.0/modules/PSReadLine". This forces the extension to use the new version. Whether this may have any side effects is a different matter. EDIT: As of 2023.8.0, the extension uses 2.3.4 by default.
  • Add preferences: $ErrorActionPreference = 'Stop', Set-StrictMode -Version 3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions