Skip to content

Alter the default PowerShell prompt to create a more minimal experience.

License

Notifications You must be signed in to change notification settings

nmarsceau/minimal-powershell-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Alter the default PowerShell prompt to create a more minimal experience.

Topics

Resources

License

Stars

Watchers

Forks