Skip to content

Instantly share code, notes, and snippets.

View bobalob's full-sized avatar

Dave Hall bobalob

View GitHub Profile
@bobalob
bobalob / profile.ps1
Last active April 9, 2021 08:22 — forked from Dods80/profile.ps1
#Requires -Version 5
# Version 1.2.16
# check if newer version
$gistUrl = "https://api.github.com/gists/c35da09661305cf04fdfa15c0af7bb1a"
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if ([System.IO.File]::Exists($latestVersionFile)) {