This is ported version of color theme xoria256.
Merge mintty-color-xoria256-rc into your .minttyrc
-- svnの作業dirでurlを、そしてgitの作業dirでbranch名をプロンプトに出力 | |
function nyaos.prompt(prompt) | |
local current = nyaos.eval('__pwd__') | |
if nyaos.access(current .. '/.svn/entries', 0) then | |
local svn_url = string.match(nyaos.eval('svn info --xml'), '<url>(.*)</url>', 1) | |
return true, '$e[36;40;1mSVN[' .. svn_url .. ']' .. prompt | |
else | |
local git_path = current | |
repeat | |
if nyaos.access(git_path .. '/.git', 0) then |