Skip to content

Instantly share code, notes, and snippets.

@samueleastdev
Forked from 2ajoyce/PasteInGitBash.ahk
Last active October 5, 2022 09:43
Show Gist options
  • Save samueleastdev/3e3f9c7ddac27698a65f367b69fcf2f4 to your computer and use it in GitHub Desktop.
Save samueleastdev/3e3f9c7ddac27698a65f367b69fcf2f4 to your computer and use it in GitHub Desktop.
Autohotkey Copy & Paste For Git Bash
#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.
SetTitleMatchMode, 1
I_Icon = C:\Program Files\AutoHotkey\Letter Icons\paste.ico
ICON [I_Icon] ;Changes a compiled script's icon (.exe)
if I_Icon <>
IfExist, %I_Icon%
Menu, Tray, Icon, %I_Icon% ;Changes menu tray icon
#IfWinActive MINGW64
{
^v::
SendInput +{Insert}
Return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment