Skip to content

Instantly share code, notes, and snippets.

bzyg7b / AltTab.ps1
Created Jul 5, 2019
Alt + Tab in PoSH
View AltTab.ps1
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",""

Keybase proof

I hereby claim:

  • I am bzyg7b on github.
  • I am 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: