Skip to content

warbacon/powershell-profile

Repository files navigation

My PowerShell 7 profile 🗣️

This was made exclusively for PowerShell 7, not Windows PowerShell.

Note

This profile is intended for use on Windows. Although it also works correctly on Linux and macOS, it is not optimized for them at the moment.

🚀 Features

  • Bash-like keyboard shortcuts.
  • Improved syntax highlighting colors.
  • Nice, simple and fast prompt. Uses Starship.
  • Windows Terminal integration for tab and pane duplication.
  • Enables some useful experimental powershell features.
  • Includes a few useful aliases.
  • And some other smaller goodies!

Enabled experimental features

Note

You need to use version 7.4 or later to take advantage of experimental features.

  • PSCommandNotFoundSuggestion: Recommend potential commands based on fuzzy search on a CommandNotFoundException.
  • PSFeedbackProvider: Replace the hard-coded suggestion framework with the extensible feedback provider.

💊 Optional dependencies

  • starship is used as prompt when it's installed. Refer to its installation guide.

  • carapace provides completions of for a large number of commands if it's installed. You can use winget install -e --id rsteube.Carapace to install it.

🪛 Installation

Just clone this repository as your PowerShell 7 profile like this if you are in Windows:

git clone https://github.com/Warbacon/powershell-profile.git "$HOME\Documents\PowerShell"

Or use this if you are on Linux or macOS:

git clone https://github.com/Warbacon/powershell-profile.git "$HOME/.config/powershell"