Skip to content

Instantly share code, notes, and snippets.

View whoisj's full-sized avatar
🏠
Working on AI Solutions @ NVIDIA

J Wyman whoisj

🏠
Working on AI Solutions @ NVIDIA
  • NVIDIA
  • Raleigh, NC, USA
View GitHub Profile
@whoisj
whoisj / profile.ps1
Last active September 17, 2018 17:56
PowerShell profile init
Set-StrictMode -Version Latest
$powershellModulesPath = 'E:\Users\jwyman\Documents\WindowsPowerShell\Modules'
if ([System.String]::IsNullOrEmpty("$env:MSYSTEM")) {
$sw = [Diagnostics.Stopwatch]::StartNew();
$global = "$env:APPDATA\Profile.ps1"
$local = "$env:LOCALAPPDATA\Profile.ps1"
@whoisj
whoisj / global.ps1
Last active September 17, 2018 17:56
PowerShell profile (global)
$host.DebuggerEnabled = $false
$host.PrivateData.ErrorBackgroundColor = $host.Ui.RawUi.BackgroundColor
$host.PrivateData.ErrorForegroundColor = $host.Ui.RawUi.ForegroundColor
$host.PrivateData.WarningBackgroundColor = $host.Ui.RawUi.BackgroundColor
$host.PrivateData.WarningForegroundColor = $host.Ui.RawUi.ForegroundColor
$host.PrivateData.DebugBackgroundColor = $host.Ui.RawUi.BackgroundColor
$host.PrivateData.DebugForegroundColor = $host.Ui.RawUi.ForegroundColor
$host.PrivateData.VerboseBackgroundColor = $host.Ui.RawUi.BackgroundColor
$host.PrivateData.VerboseForegroundColor = $host.Ui.RawUi.ForegroundColor
$host.PrivateData.ProgressBackgroundColor = $host.Ui.RawUi.BackgroundColor
@whoisj
whoisj / local.ps1
Last active September 17, 2018 17:56
PowerShell profile (local)
function prompt
{
"[$(get-location) $(Get-Date -Format "HH:mm:ss")]> "
}
# Show elapsed time for last N commands
function global:DisplayCommandTimes
{
$count = if ($args[0]) { $args[0] } else { 5 }
@whoisj
whoisj / .gitconfig
Last active September 17, 2018 17:55
[branch]
autosetupmerge = always
autosetuprebase = always
[user]
name = J Wyman
email =
[fetch]
prune = true
[push]
default = simple