Skip to content

Instantly share code, notes, and snippets.

View BCSharp's full-sized avatar

Pavel Koneski BCSharp

  • Victoria, BC, Canada
View GitHub Profile
@BCSharp
BCSharp / keybase.md
Created April 9, 2021 04:30
Keybase pakon link for BCSharp

Keybase proof

I hereby claim:

  • I am bcsharp on github.
  • I am pakon (https://keybase.io/pakon) on keybase.
  • I have a public key ASD1b7TaeQsnHzw5GS1igo0ti53eVfRNGJQVwAwRcYUlXQo

To claim this, I am signing this object:

@BCSharp
BCSharp / Add-EnvPath.ps1
Created April 15, 2022 19:46
PowerShell function to add a path to the PATH environment variable
<#
.Synopsis
Add a path to the PATH environment variable.
.Description
Adds the given path to the paths defined in the PATH environment variable.
The path is only added if it is not already in PATH and it actually resolves to an existing directory.
Empty paths (empty strings) are not added and any empty paths in PATH are removed. Add '.' to refer to the current directory.
.Parameter Path
The path to be added. It is being tested if it leads to an existing object. If not, it is not added.
.Parameter Prepend