Skip to content

Instantly share code, notes, and snippets.

@varemenos
Created August 27, 2013 05:24
Show Gist options
  • Save varemenos/6349899 to your computer and use it in GitHub Desktop.
Save varemenos/6349899 to your computer and use it in GitHub Desktop.
PowerShell - QuakeStyle (now supports posh~git as well)
F12::
DetectHiddenWindows, on
If WinExist("posh~git") OR WinExist("Windows PowerShell")
{
If WinActive("posh~git") OR WinActive("Windows PowerShell")
{
WinHide
if(temptitle="")
WinActivate ahk_class Shell_TrayWnd
else
WinActivate %temptitle%
}
else
{
WinGetActiveTitle, temptitle
WinShow
WinActivate
}
}
else{
WinGetActiveTitle, temptitle
Run, PowerShell -ExecutionPolicy unrestricted -WindowStyle Maximized -NoLogo
}
DetectHiddenWindows, off
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment