The Ultimate Powershell Experience
This PowerShell profile script introduces a comprehensive set of functions and aliases aimed at enhancing the PowerShell experience. It includes everything from module management and profile updates to utility functions and quality of life improvements.
GitHub Project: https://github.com/ChrisTitusTech/powershell-profile
Key Features
Module Management: Automatically installs the
Terminal-Iconsmodule if not present and imports it along with the Chocolatey profile if available.Profile Updates: Includes a function
Update-Profileto check for and apply updates to the PowerShell profile script from a specified URL.PowerShell Updates: A function
Update-PowerShellchecks for and installs the latest PowerShell version usingwinget.Admin Check and Prompt Customization: Adjusts the prompt based on whether the user has administrator privileges and customizes the window title accordingly.
Utility Functions: A collection of utility functions such as
Test-CommandExists,Edit-Profile,Get-PubIP,uptime,reload-profile,unzip,hb(for uploading documents),grep,df,sed,which,export,pkill,pgrep,head, andtail.Quick File and Directory Management: Functions for creating new files (
nf), and making and changing directories (mkcd).Quality of Life Aliases: Includes shortcuts for navigation (
docs,dtop), editing the profile (ep), process management (k9), enhanced listing (la,ll), Git shortcuts (gs,ga,gc,gp,g,gcom,lazyg), system information (sysinfo), networking utilities (flushdns), and clipboard utilities (cpy,pst).Enhanced PowerShell Experience: Sets
PSReadLineoptions for color coding and initializesoh-my-poshwith a specified theme for a better visual experience.
Conclusion
This PowerShell profile script is designed to streamline and enhance the PowerShell user experience, incorporating a wide range of functions and aliases that cater to various needs from system administration to development tasks.