This is my PowerShell profile. It's a work in progress. I will slowly add to as I find more useful functions and aliases.
Designed with a Nord theme to match my Windows Terminal Nord Colour Scheme
To install the profile, run the following command in PowerShell:
irm "owen3456.xyz/pwsh" | iex
This will install:
You need to install a Nerd font to use the theme. Set the font in terminal.
cd
function now uses Zioxide. It's a smarter cd
command that tracks your most used directories
Gsudo is a sudo alternative for Windows. It allows you to run commands as an administrator with gsduo
or sudo
Note: Some functions missing from the list
Update-PowerShell
- Updates PowerShell to the latest version. Is ran on startup.
Update-Profile
- Updates profile from GitHub and all dependencies.
Reload-Profile
- Reloads the profile.
hb [relative file path]
- Uploads the file to a hastebin server and returns the URL.
ip
- Makes a curl request to https://api.ipify.org and returns your public IP address.
admin
- Opens a new PowerShell window as an administrator.
Edit-Profile
- Opens the profile in Visual Studio Code.
ll
- Lists contents of directory excluding other directories.
find-file [file name]
or ff [file name]
- Searches for a file in the current directory and all subdirectories.
unzip
- Unzips a file into the current directory.
pkill [process]
- Kills any process with the name.
uptime
- Returns the uptime of the computer.
reload
- Reloads the profile.
winutil
- Opens Windows Utility.
mas
- Runs Microsoft Activation Script.
flushdns
- Flushes the DNS cache.
sd
- Runs a fuzzy find and changes to the selected directory.
Clear-History
- The default Clear-History
command doesn't work. It get overwritten with a command that does work.
doc
- Opens the Documents folder.
dl
- Opens the Downloads folder.
gh
- Opens the GitHub folder (...\Documents\GitHub).
c
- Opens the C: drive.