Normally developers talk about how much productive you can become by using command line tools but the sad thing is they always talk about iTerm or BASH may be ZSH but what about windows users. I know that command line in windows sucks but there is still some hope, here we have Powershell. Powershell has most of the commands like curl and ls (they work in windows style).
I decided to see how far I can go with Powershell and there is what I came up with.
PowerShell is Customizable 🤓
You can change the prompt of PowerShell with different colors, many outputs and like all Bash kids, you can also view git statuses with modules like Post-git. If you want to go further and even change the title of the prompts.
Like BASH guys keep their configs in
~/.bashrc we can save our configs in
You can remove bells with
Set-PSReadlineOption -BellStyle None or import modules like
If you don't like the default prompt
C:\Users\jztsaurabh\Documents\WindowsPowerShell> yeah this one, then you can customize it too.
here is how I customized my prompt
If you like to view git status in command line then modules in PowerShell can help you.
You need to install Post-git
You can also install it from PowerShell 😜
Install-Module -Name posh-git -Scope CurrentUser
Some people like to use Z for jumping between nested folder structures.You can install Z for PowerShell too.
Install-Module -Name z -Scope CurrentUser
functions in PowerShell 🎁
Making functions are really easy in PowerShell if you want to run a number of commands at once, then functions may help you.
If you want to set-up a new machine you can run functions that can install git, Nodejs, Firefox or other software for you.
I made some functions like:
Aliases (Oh my Aliases 😍)
Aliases in Powershell are exactly what you expect from it. You can create shortcut commands and create an alias for an executable (they are better than adding everything in Environment variables).
I like to use grep
Scoop for package management 📦
This is my favorite, I was searching for a package manager for windows like brew, If found chocolaty but it has outdated versions of the atom, and I found scoop it was just what I was looking for, it works, it doesn't need admin permission for installing apps. It just works fine.
You can install [scoop] by
You can use it like