/minimal_powershell_setup

A stylish and functional PowerShell profile that looks and feels almost as good as a Linux terminal.

Primary LanguagePowerShell

My Minimal Terminal Setup

Introduction

A stylish and functional PowerShell profile that looks and feels almost as good as a Linux terminal.

advantage:

  • Command Suggestion Dropdown from history by arrow-down/arrow-up then enter
  • Command intelisense when hit ctrl + space
  • Some common linux command
  • terminal icon when doing ls, ls | fw, ls | fl
  • Delete a command from History with shift + Delete

Install (Powershell Run As Administrator)

Warning

Make sure you have Winget Installed. [See More..]

is recommend to run in elevated powershell:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned CurrentUser -force
irm "https://raw.githubusercontent.com/khad1r/minimal_powershell_setup/main/setup.ps1" | iex

Some Custom Command

Command Description Arg Example
sudo run as admin like in Linux any command sudo notepad example.txt
Start-ElevatedPS{} Run powershell command as admin any powershell Start-ElevatedPS{ rm file.pdf}
Get-HotKeys get powershell shortkey - -
Get-PubIP Get your Ip Public - -
find-file find file in directory string find-file any,find-file "tes any"
unzip unzip file path to zip file unzip file.zip
Compute-Hash calculate hash of file or string file/string,hash algorithm Compute-Hash file.zip MD5
md5 hash file or string with MD5 file/string md5 file.zip,md5 "Hash this"
sha1 hash file or string with SHA1 file/string sha1 file.zip,sha1 "Hash this"
sha256 hash file or string with SHA256 file/string sha256 file.zip,sha256 "Hash this"

  1. Try sudo wt | sudo powershell to start terminal as admin like sudo su in linux.
  2. To Edit the theme use Code $env:POSH_THEME | notepad $env:POSH_THEME.
  3. To Edit the profile use Code $PROFILE | notepad $PROFILE.
  4. for windows terminal Setting.json copy the content of windows terminal.setting.json to setting.json.
  5. for native powershell see this for customize the appearance.