Giter Club home page Giter Club logo

powershell-pre-workout's Introduction

PowerShell Pre-Workout

A special mix of tools (and experiments) to help jump start your PowerShell session!

An image generated by Bing Image Creator. Prompt: hooded robot hacker wearing a PowerShell shirt, drinking a powerful energy drink with energy swirling around the cup, surrounded by swirling energy, floating in the air, cinematic, hacker professional photography, studio lighting, studio background, advertising photography, intricate details, hyper-detailed, ultra realistic, 8K UHD, PowerShell

Contents

Script Description
New-ProfileWorkspace Setup a folder and VS Code Workspace for maintaining your PowerShell profiles, VS Code settings, and Windows Terminal settings.
New-DotSourcedProfile Point all of your CurrentUserHost PowerShell profiles to a central dot sourced profile.
Install-OhMyPosh Install Oh My Posh with Nerd Fonts to make your shell beautiful and functional.
Install-PowerShellISE Reinstall the PowerShell ISE for compatibility testing. ๐Ÿ˜‰
Get-EnvironmentVariable Easily get one or all environment variables.
Set-EnvironmentVariable Easily set an environment variables.
Get-MsModules Get a list of Microsoft's core modules for Azure, Graph, and M365.
Install-MsModules Get a list of Microsoft's core modules for Azure, Graph, and M365.
Update-MsModules A helper for updating Microsoft's core modules for Azure, Graph, and M365.
Get-RecommendedModules Get a list of community recommended modules.
Install-RecommendedModules Easily install optional recommended modules.

Script Details

$~$

New-ProfileWorkspace ๐Ÿ”

Synopsis

Setup a folder and VS Code Workspace for maintaining your PowerShell profiles, VS Code settings, and Windows Terminal settings.

Description

I wanted an easy way to maintain all of my CurrentUser PowerShell profiles, and my settings files for Visual Studio Code and Windows Terminal. There are probably easier ways to accomplish this, but my basic goal was to not have to hunt for these files across the file system in order to edit them. This admittedly over-engineered idea creates a folder that contains:

  • Junction points to the locations of your CurrentUser PowerShell and Windows PowerShell folders
  • Junction points to the locations of your settings for VS Code and Windows Terminal
  • Structural artifacts in case you want to save this as a repository
    • A Visual Studio Code workspace file that opens this new folder
    • EditorConfig and Visual Studio Code settings files for consistent editing
    • A .gitignore file in case you want to use this as a git repository (test?)

$~$

New-DotSourcedProfile ๐Ÿ”

I need to automate this one still, but it will be a script that creates one central profile script and then sets each CurrentUser profile to dot source that central profile for easier sync across all of your profiles for PowerShell, PowerShell ISE, Visual Studio Code, Windows PowerShell, etc.

$~$

Install-OhMyPosh ๐Ÿ”

Synopsis

Install Oh My Posh, or update it if already installed.

Description

This is a quick installer for Oh My Posh. It's almost unnecessary because of how easy OMP is to install, but may be helpful to people who are brand new to it and want to save time. Includes steps to install Nerd Fonts. Nerd Fonts are required to get the most out of Oh My Posh and some great modules like Posh-Git, and Terminal Icons.

$~$

Install-PowerShellISE ๐Ÿ”

Install the PowerShell ISE if it was removed. It can be helpful to keep the ISE installed for compatibility testing.

$~$

Get-EnvironmentVariable ๐Ÿ”

Easily get a specific environment variable or list all of them.

$~$

Set-EnvironmentVariable ๐Ÿ”

Set an environment variable.

$~$

Get-MsModules ๐Ÿ”

List all of the Microsoft PowerShell modules that you need for working with Azure, Microsoft 365, or Microsoft Graph.

$~$

Install-MsModules ๐Ÿ”

Quickly install all or any of the Microsoft PowerShell modules that you need for working with Azure, Microsoft 365, or Microsoft Graph.

$~$

Update-MsModules ๐Ÿ”

Quickly update all or any of the Microsoft PowerShell modules that you need for working with Azure, Microsoft 365, or Microsoft Graph.

$~$

Get-RecommendedModules ๐Ÿ”

Get a list of recommended PowerShell modules authored by Microsoft and the community.

$~$

Install-RecommendedModules ๐Ÿ”

Install your choice of recommended PowerShell modules authored by Microsoft and the community.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.