Skip to content

Instantly share code, notes, and snippets.

@nocd5
Created November 1, 2014 15:23
Show Gist options
  • Save nocd5/876986d70b8afb8dd5ff to your computer and use it in GitHub Desktop.
Save nocd5/876986d70b8afb8dd5ff to your computer and use it in GitHub Desktop.
nyagosで`echo $PATH`とかしたい ref: http://qiita.com/nocd5/items/aa155e91a6eef58b3940
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