DEV Community

Discussion on: The Complete Windows Web Developer Setup Guide

Collapse
 
calebbarnes profile image
CalebBarnes • Edited

Good article!

I used to use WSL but I prefer to use the cross platform Powershell now to avoid weird VM edge cases (like working with electron) and other weird WSL bugs that come up.

Powershell has similar things like oh-my-posh for themeing. Most of the bash commands just work these days and you can get some more similar bash functionality by customizing your PowerShell $PROFILE.

My PowerShell $PROFILE:

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme robbyrussel

# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward

$env:NODE_ENV = "development"

# Easily create aliases for any commands you want
function dev { yarn start }
Enter fullscreen mode Exit fullscreen mode
Collapse
 
jandedobbeleer profile image
Jan De Dobbeleer • Edited

This won't work anymore though:

Import-Module oh-my-posh
Set-PoshPrompt -Theme robbyrussel
Enter fullscreen mode Exit fullscreen mode

You'll need to follow the guide here and have a look at the migration guide.