Skip to content

Instantly share code, notes, and snippets.

@akbiggs
Created February 9, 2013 17:09
Show Gist options
  • Save akbiggs/4746101 to your computer and use it in GitHub Desktop.
Save akbiggs/4746101 to your computer and use it in GitHub Desktop.
; VARIABLES
program_files := "C:\Program^ Files"
cmd := "C:\Windows\System32\cmd.exe /k " . program_files . "\nodejs\nodejsvars.bat"
home := "C:\Users\Bill"
code := home . "\Code"
; FUNCTIONS
CD(path) {
SendInput cd %path% {enter}
return
}
Vim(path) {
SendInput vim %path% {enter}
return
}
Terminal() {
global cmd
Run %cmd%
IfWinExist, "cmd"
WinActivate
else
WinActivate Calculator ; for safety
Sleep 50
}
; GITHUB
^!g::Run www.github.com
^!i::Run http://gist.github.com
; TERMINAL
^!t::
Terminal()
CD(code)
return
^!v::
Terminal()
CD(home)
Vim(".vimrc")
return
; AUTOHOTKEY
^!h::
Terminal()
CD(home)
CD("Documents")
Vim("AutoHotkey.ahk")
return
^!r::Reload
; REMAPPINGS
Capslock::+tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment