This guide covers installing essential PowerShell modules and configuring your PowerShell environment for an enhanced command-line experience.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/heyitsiveen/windows-11/llms.txt
Use this file to discover all available pages before exploring further.
Set Execution Policy
Set execution policy to RemoteSigned
This allows local scripts to run while requiring signed remote scripts:
The
RemoteSigned policy allows you to run scripts you’ve written locally while protecting against unsigned scripts from the internet.Install PowerShell Modules
Install PSReadLine
PSReadLine provides enhanced command-line editing with features like syntax highlighting and history search.
PSReadLine is usually pre-installed, but updating to the latest version ensures you have all recent features.
Install PSFzf
PSFzf integrates the fzf fuzzy finder with PowerShell for interactive history and file search.See the PSFzf GitHub repository for more details.
Install Terminal-Icons
Terminal-Icons adds file and folder icons to your terminal directory listings.See the Terminal-Icons installation guide for more information.
Verify Module Installation
Check that all modules are installed correctly:Configure PowerShell Profile
Set up PowerShell profile path
Create or edit your PowerShell profile to load custom configurations:Open the profile for editing:
Configure PSReadLine
PSReadLine enhances your command-line editing experience with history search and predictive IntelliSense. Create a configuration file at$HOME\.config\powershell\conf.d\00-init.ps1:
With these settings, you can start typing a command and use the Up/Down arrows to search through your history for matching commands.
Configure Terminal-Icons
Enable Terminal-Icons in your configuration:$HOME\.config\powershell\conf.d\00-init.ps1 file.
Configure PSFzf
Set up PSFzf for fuzzy finding integration: Create or add to$HOME\.config\powershell\conf.d\30-tools.ps1:
PSFzf provides keyboard shortcuts:
Ctrl+R: Search command historyCtrl+T: Search files in current directoryAlt+C: Change to a directory using fuzzy search
Test Your Configuration
Test PSReadLine history search
Type a partial command and press the Up arrow. You should see matching commands from your history.
Test PSFzf keybindings
- Press
Ctrl+Rto open fuzzy history search - Press
Ctrl+Tto open fuzzy file finder - Press
Alt+Cto open fuzzy directory navigator
Verify Complete Installation
Run a comprehensive verification:Troubleshooting
PSFzf Not Working
If PSFzf keybindings don’t work:Icons Not Displaying
If Terminal-Icons aren’t showing:- Ensure you’re using a Nerd Font in your terminal
- Configure your terminal (WezTerm, Windows Terminal, etc.) to use JetBrainsMono Nerd Font
- Restart your terminal after changing fonts
Scripts Not Running
If you see “running scripts is disabled” errors:Next Steps
Your PowerShell environment is now configured with enhanced editing, history search, and visual improvements:- Explore the PowerShell profile structure and modular configuration system
- Configure CLI tools like bat, eza, zoxide, and fzf
- Learn about custom functions and productivity aliases
