This is a fast, modern, powerful and highly extensible Powershell configuration
- ⭐ Prompt Customization using starship
- 📁 Terminal Icons for File View
- 🔍 Autocompletion using PSReadLine
- 🔑 Aliases for better Workflow
- 🧰 Utility Commands
- 🚦 Rewritten Git Command, that can be configured to your liking
- 🚋 Goto Command, that too can be configured to your liking
- 🛂 Gitignore Templates
- 💻 additionally, Modular Loading
- Powershell >= 7.3.1
- Git
- Pnpm Package Manager
- Commitizen Conventional Changelog:
npm i -g commitizen
- a Nerd Font
This will be reworked in the future, as this process is long and tedious
In Powershell, run the following Commands:
winget install --id Starship.Starship
Install-Module -Name Terminal-Icons -Repository PSGallery
Install-Module PSReadLine
or if you are using Scoop:
scoop bucket add extras
scoop install starship
scoop install terminal-icons
Install-Module PSReadLine
git clone https://github.com/28n/powershell "$env:HOME\.config\powershell"
or
install manually to ~/.config/powershell
Open $PROFILE.CurrentUserCurrentHost
with your favourite Text Editor, e.g. Neovim:
nvim $PROFILE.CurrentUserCurrentHost
Add the following text to this file:
. $env:USERPROFILE\.config\powershell\28n_profile.ps1
vim
+vi
fornvim
ll
forls
grep
forfindstr
tig
to manually executetig
executableless
to manually executeless
executablen
andnpm
forpnpm
You may use the git command normally, but i have rewritten to work with the following aliases:
g
:
s
forstatus
a
foradd
p
forpush
c
andcommit
to execute commitizencz
You may use the czinit
command to initialize a commitizen friendly repo in an already existing git repository.
If the repo is already commitizen friendly and this command throws an error, try installing missing deps by running npm install
To see all possible templates, run the gitignore
command without any flags or with the -h
or --help
flag.
To create a .gitignore
file in your current directory, run the gitignore
command with any available template name as an argument.
To see a templates content, run the gitignore
command with the -s
or --show
flag. Then append a valid template name to the end. E.g.: gitignore -s node
This command lets you quickly hop to my most commonly used folders.
gt
:
h
to~
nv
to$ENV:LOCALAPPDATA + \nvim\
nvd
to$ENV:LOCALAPPDATA + \nvim-data\
To delete a PSReadLine Completion Character, press Ctrl+D
NOTE: If PSReadLine doesn't autocomplete automatically, you should first let the application learn based off of your commands. Type them once, then PSReadLine remembers.
As you might have noticed, there are OMP Themes located in this config. Oh My Posh is currently not install, but it will be, when i implement a Prompt Switcher.