Lädt...


🔧 Best PowerShell Dev Environment on Windows


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Hey everyone! 😊 I just wanted to share a bit about my development setup. I’m using a 1920x1080 display with UI scaling set to 100%, which makes my PowerShell terminal look really pretty on Windows Terminal. It’s been working great for me! So let’s get started:

1. Install PowerShell 7.4.5 (Windows x64)

Download: https://github.com/PowerShell/PowerShell/releases/download/v7.4.5/PowerShell-7.4.5-win-x64.msi

2. Open PowerShell, Install Scoop

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

3. Install Windows Terminal

scoop bucket add extras
scoop install extras/windows-terminal

4. Install Oh-My-Posh, PSReadLine, gsudo, Terminal-Icons

scoop bucket add main
scoop install main/oh-my-posh
scoop install main/gsudo
scoop install extras/terminal-icons
notepad $PROFILE
----------------------------
# Activate Oh My Posh: 
oh-my-posh init pwsh --config "%USERPROFILE%\scoop\apps\oh-my-posh\current\themes\1_shell.omp.json" | Invoke-Expression
# Activate Oh PSReadLine: 
Import-Module PSReadLine
# Activate gsudo  to elevate a command or the last command:
Import-Module gsudoModule
# Activate Terminal-Icons
Import-Module Terminal-Icons
----------------------------

5. Install NVM (Node.js Version Manager)

Download: https://github.com/coreybutler/nvm-windows/releases/download/1.1.12/nvm-setup.exe

6. Install pyenv to manage multiple versions of Python

Open Windows-Terminal:

Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"

7. Install Search Everything

Instead of using https://scoop.sh/#/apps to search a package. We can use Everything. Search: package json

scoop install extras/everything

Image description

8. Install fastfetch

Instead of abandoned neofetch, we can use fastfetch.

scoop install fastfetch

9. Test Everything

Image description

Image description

10. Tips & Tricks

1. Use Nerd Font

2. To update scoop package:

scoop update *

3. nvm Guide: https://github.com/coreybutler/nvm-windows

4. pyenv Guide: https://github.com/pyenv-win/pyenv-win

That's it! We can now use scoop, nvm, and pyenv in one terminal. If you have any suggestions, just comment below!

...

🔧 Best PowerShell Dev Environment on Windows


📈 30.52 Punkte
🔧 Programmierung

🕵️ Microsoft Windows PowerShell Integrated Scripting Environment privilege escalation


📈 19.99 Punkte
🕵️ Sicherheitslücken

📰 Linux: Difference Between /dev/tty, /dev/tty0, and /dev/console


📈 19.95 Punkte
🐧 Unix Server

🎥 [Powershell for Pentester] Part 5: Get meterpreter session with powershell


📈 19.68 Punkte
🎥 IT Security Video

🎥 [Powershell for Pentester] Part 4: Convert Powershell command into exe format


📈 19.68 Punkte
🎥 IT Security Video

🎥 [PowerShell for Pentester] Part 1: Hello PowerShell


📈 19.68 Punkte
🎥 Video

🎥 [Powershell for Pentester] Part 5: Get meterpreter session with powershell


📈 19.68 Punkte
🎥 IT Security Video

🎥 [Powershell for Pentester] Part 4: Convert Powershell command into exe format


📈 19.68 Punkte
🎥 IT Security Video

🎥 [PowerShell for Pentester] Part 1: Hello PowerShell


📈 19.68 Punkte
🎥 Video

🎥 dnscat2 powershell Powershell Features


📈 19.68 Punkte
🎥 IT Security Video

📰 PowerShell w/o PowerShell Simplified


📈 19.68 Punkte
📰 IT Security Nachrichten

📰 Powershell-Reverse-Tcp - PowerShell Script For Connecting To A Remote Host.


📈 19.68 Punkte
📰 IT Security Nachrichten

🕵️ Deobfuscate PowerShell using PowerShell Logging


📈 19.68 Punkte
🕵️ Reverse Engineering

💾 PowerShell (ehemals PowerShell Core) 7.0.3 Deutsch


📈 19.68 Punkte
💾 Downloads

📰 Exchange Online PowerShell V3 löst bald die PowerShell V2 ab


📈 19.68 Punkte
📰 IT Nachrichten

📰 PowerShell DNS Command & Control with dnscat2-powershell


📈 19.68 Punkte
📰 IT Security Nachrichten

🐧 Creating a Batch File and PowerShell Script “Batch File to Run PowerShell Script


📈 19.68 Punkte
🐧 Linux Tipps

📰 (g+) Teil 4 des Powershell-Tutorials: Arrays und Hashtable in Powershell


📈 19.68 Punkte
📰 IT Nachrichten

📰 powershell /k: PowerShell-Befehle schnell und direkt ausführen?


📈 19.68 Punkte
📰 IT Nachrichten

🐧 25 Best CDN Providers 2019 (sorted by best ent, best small biz, best budget and best free CDNs)


📈 19.4 Punkte
🐧 Linux Tipps

🪟 How to Print Environment Variables in Powershell: 3 Easy Tips


📈 18.4 Punkte
🪟 Windows Tipps

🔧 /s 🚀 5 Best Posts From 100 DEV Community Best Posts Having "Best" or "10" in Their Title 🚀 /s


📈 18.29 Punkte
🔧 Programmierung

🐧 What your desktop environment does that is awesome or that no other desktop environment does?


📈 17.11 Punkte
🐧 Linux Tipps

🐧 Customised Emacs Environment for Linux as a Desktop Environment


📈 17.11 Punkte
🐧 Linux Tipps

🍏 Java SE Runtime Environment 8 8u391 - Java Runtime Environment (JRE).


📈 17.11 Punkte
🍏 iOS / Mac OS

🔧 Blocker: How to load environment variables on broswer environment using webpack.config.js


📈 17.11 Punkte
🔧 Programmierung

🕵️ CVE-2024-29900 | electron packager 18.3.0 Environment Variable environment unknown vulnerability


📈 17.11 Punkte
🕵️ Sicherheitslücken

matomo