Created
November 1, 2014 15:23
-
-
Save nocd5/876986d70b8afb8dd5ff to your computer and use it in GitHub Desktop.
nyagosで`echo $PATH`とかしたい ref: http://qiita.com/nocd5/items/aa155e91a6eef58b3940
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
local _filter = nyagos.filter | |
nyagos.filter = function(cmdline) | |
local post = cmdline:gsub('${([%w_()]+)}', '%%%1%%') | |
post = post:gsub('$([%w_()]+)', '%%%1%%') | |
return _filter(post) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment