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
thenenter
- 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
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
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" |
- Try
sudo wt
|sudo powershell
to start terminal as admin likesudo su
in linux. - To Edit the theme use
Code $env:POSH_THEME
|notepad $env:POSH_THEME
. - To Edit the profile use
Code $PROFILE
|notepad $PROFILE
. - for windows terminal
Setting.json
copy the content of windows terminal.setting.json tosetting.json
. - for native powershell see this for customize the appearance.