Start new PS Session or "Reload" PowerShell after App (Git) Installation?

This page summarizes the projects mentioned and recommended in the original post on /r/PowerShell

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • to

  • git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + git clone https://github.com/Path/To.git $GitGubLocaDir + ~~~ + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

  • Chocolatey

    Chocolatey - the package manager for Windows

  • However, there is no official API or nice, clean way of updating the environment variables of a running process. Chocolatey uses this script and you can copy that and use it too, but while this will work in 90+% of cases it isn't a perfect replication of the environment that a new PowerShell process would get. The "cleanest" way is to either just use a new PowerShell process (that isn't a child of your old one) or to use a package manager that doesn't rely on programs continuously appending their own entries to PATH, but rather uses just a single directory and puts shims to all installed programs in there - such as scoop instead of winget. Then you won't have this problem at all.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Scoop

    A command-line installer for Windows.

  • However, there is no official API or nice, clean way of updating the environment variables of a running process. Chocolatey uses this script and you can copy that and use it too, but while this will work in 90+% of cases it isn't a perfect replication of the environment that a new PowerShell process would get. The "cleanest" way is to either just use a new PowerShell process (that isn't a child of your old one) or to use a package manager that doesn't rely on programs continuously appending their own entries to PATH, but rather uses just a single directory and puts shims to all installed programs in there - such as scoop instead of winget. Then you won't have this problem at all.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Hackers push malware via Google search ads for VLC, 7-Zip, CCleaner

    2 projects | /r/hacking | 19 Jan 2023
  • To make a software and package installation batch file in windows

    2 projects | /r/software | 13 Oct 2022
  • Windows alternative for Linux commands.

    2 projects | /r/Windows10 | 3 Sep 2022
  • Keep your Windows computer up-to-date with just one command

    2 projects | dev.to | 16 Mar 2022
  • Need Help with getting Haskell onto my Windows Laptop

    2 projects | /r/haskell | 4 Dec 2023