Skip to content

Instantly share code, notes, and snippets.

@bigsby-exe
bigsby-exe / AltTab.ps1
Created July 5, 2019 00:07
Alt + Tab in PoSH
[void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms')
[System.Windows.Forms.SendKeys]::SendWait("%{TAB}")
@bigsby-exe
bigsby-exe / profile.ps1
Created June 27, 2019 21:38
PoSH profile
function Prompt {
Write-Host '[' -NoNewline
Write-Host (Get-Date -Format "HH:mm tt") -ForegroundColor Green -NoNewline
Write-Host '] ' -NoNewline
[string]$dir = Get-Location
if ($dir.startswith("Microsoft.PowerShell.Core\FileSystem::")){
$dir = ($dir -split "FileSystem::" | select -Last 1 ).trim()
$last = ($dir -split "\\" | select -Last 1).trim()
$first = $dir -replace "$last",""

Keybase proof

I hereby claim:

  • I am bzyg7b on github.
  • I am bigsby (https://keybase.io/bigsby) on keybase.
  • I have a public key whose fingerprint is 0968 2193 C12B FD3F 0B56 407C D72B 85D9 8D31 6ACE

To claim this, I am signing this object: