Skip to content

Instantly share code, notes, and snippets.

View JunyaOnishi's full-sized avatar

JunyaOnishi JunyaOnishi

View GitHub Profile
@JunyaOnishi
JunyaOnishi / file0.txt
Last active August 29, 2015 14:19
nyagosでghqとgh-openをpecoってつかいたかった ref: http://qiita.com/JugnautOnishi/items/f55058c2f6669a18076a
alias {
phq = function (arg)
local arg = string.format("%s", arg[1])
local str = nyagos.eval("ghq list -p | peco")
if (str ~= nil ) then
if arg == "open" then
for line in string.gmatch(str, '[%a|%p]+[\n]*') do
nyagos.exec("gh-open "..'"'..chomp(line)..'"')
end
else