Skip to content

Instantly share code, notes, and snippets.

@kassiokiarelly
kassiokiarelly / profile.ps1
Last active September 19, 2022 14:26 — forked from SteveL-MSFT/profile.ps1
PowerShell Prompt
#Requires -Version 7
# Version 1.2.12
# check if newer version
$gistUrl = "https://api.github.com/gists/6e01fea55a2b9654c783516b011546d7"
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if ([System.IO.File]::Exists($latestVersionFile)) {
@kassiokiarelly
kassiokiarelly / GitCommandLine.sh
Created June 17, 2019 12:45
Git command line
#initialize git repository
git init
#add all files to index
git add .
#Status of the index area
git status --short
#commit files from index area with message