Skip to content

Instantly share code, notes, and snippets.

@Karneades
Created April 14, 2019 12:54
Show Gist options
  • Save Karneades/14ab75055e4958925cbb15ebad709dcd to your computer and use it in GitHub Desktop.
Save Karneades/14ab75055e4958925cbb15ebad709dcd to your computer and use it in GitHub Desktop.
AutoHotKey commands for Windows cmd and PowerShell (ctrl+l, ctrl-p, ctrl-n, ctrl-a, ctrl-e)
; When within PS, use Ctrl-L to perform cls
#IfWinActive ahk_class ConsoleWindowClass
^l::SendInput {Esc}cls{Enter}
; When within PS, use Ctrl-P to perform Arrow-UP
^p::SendInput {Up}
; When within PS, use Ctrl-N to perform Arrow-Down
^n::SendInput {Down}
; When within PS, use Ctrl-E to perform End
^e::SendInput {End}
; When within PS, use Ctrl-A to perform Home
^a::SendInput {Home}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment