Skip to content

Instantly share code, notes, and snippets.

@larshb
Created January 8, 2020 15:07
Show Gist options
  • Save larshb/c55b8daec592ef2bc5e226caaf4076b0 to your computer and use it in GitHub Desktop.
Save larshb/c55b8daec592ef2bc5e226caaf4076b0 to your computer and use it in GitHub Desktop.
AutoHotkey script to prompt for WSL/Ubuntu/Bash command on win+shift+r press
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#+r::
; [Win] + [Shift] + [R]
InputBox, BashCommand, Enter Linux command,,,,100
Run, bash -ic "%BashCommand%; sleep 5"
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment