Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.28 KB

README.md

File metadata and controls

31 lines (16 loc) · 1.28 KB

Minimal PowerShell Prompt

This script alters the default PowerShell prompt to create a more useful experience while trying to remain as minimal as possible.

Installation

  1. Clone this repository to your computer.

  2. Add the following line to your PowerShell profile:

    . C:\path\to\minimal-powershell-profile.ps1

Features

Customized Command Prompt

To keep the command prompt short, only the last 3 segments of the working directory will be printed.

Only three segments of the working directory path are shown at the prompt.

Show the Runtime of the Previous Command

If the previous command took longer than 5 seconds to run, its runtime will be displayed before the prompt is printed.

The runtime of the previous command is displayed at the prompt.

Administrator Warning

When running PowerShell as an Administrator, a very bold warning will be displayed at the beginning of the prompt.

A PowerShell prompt running with elevated privileges.