Created
February 9, 2013 17:09
-
-
Save akbiggs/4746101 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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