Created
November 21, 2014 15:01
-
-
Save hymkor/78ef917fd108377ca942 to your computer and use it in GitHub Desktop.
Ctrl-G を押下すると、同じカレントディレクトリでもう一つの NYAGOS を起動する
This file contains 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
nyagos.bindkey("C-G", | |
function(this) | |
local curdir=nyagos.getwd() | |
nyagos.setenv("DOCHDIR",curdir) | |
nyagos.shellexecute('open', nyagos.exe,'',curdir) | |
end | |
) | |
local DOCHDIR=nyagos.getenv("DOCHDIR") | |
if DOCHDIR and string.len(DOCHDIR) > 0 then | |
nyagos.exec(string.format('cd ""%s""',DOCHDIR)) | |
nyagos.setenv("DOCHDIR",nil) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment