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
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 |