Skip to content

Instantly share code, notes, and snippets.

@bzyg7b
bzyg7b / AltTab.ps1
Created Jul 5, 2019
Alt + Tab in PoSH
View AltTab.ps1
[void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms')
[System.Windows.Forms.SendKeys]::SendWait("%{TAB}")
View profile.ps1
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",""
View keybase.md

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: