Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 910 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 910 Bytes

Modular-PS-Prompt

A Modular PowerShell CLI Prompt forked from https://github.com/Namorzyny/PSLittleTrain.

The original maintainer has removed and no longer maintains the source repository.

Dependencies

Prior to installation, ensure the PSReadline module is installed. PowerShell >= 6.x already includes this.

Optionally, install posh-git for git command completion. The quickest way to do this is with Chocolatey choco install poshgit.

Installation

Source this module and set PSReadLine options with the following snippet in your Microsoft.Powershell_profile.ps1 file:

Import-Module LittleTrainPrompt

$PSReadLineOptions = @{
  HistoryNoDuplicates = $true
  HistorySaveStyle = "SaveIncrementally"
  HistorySearchCursorMovesToEnd = $true
}

Set-PSReadLineOption @PSReadLineOptions