PowerShell: change default prompt

reallThanks here

PSPrompt01

 

Now PS has setup the $profile file in the right location, edit in Notepad:

PSPrompt02

function Global:prompt {“PS [$Env:username]$PWD`n>”}

PSPrompt03

 

Oh yes, this is a new machine…

PSPrompt04

 

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

(and remember you have to run this as admin)

I’d say that’s a pretty useful prompt – the backtick gives you back your real estate once you know the directory name – thanks StackOverflow person

 

PSPrompt05

 

 

 

Advertisements

One thought on “PowerShell: change default prompt

  1. Pingback: PowerShell: The basic template in ISE | The Things I do

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s