That's... actually a really neat idea. I'm now imagining something like
function --lua strip_prefix(str,pref) --description Strips the second arg as a
prefix from the first
if string.sub(str, 1, #pref) == pref then
str = string.sub(str, #pref+1)
end
During the process of porting __git_ps1 to Fish (see my previous email), I ran
into lots of issues (both design issues and missing functionality) with Fish
scripting. I've already filed issues for a lot of these, but I thought I would
just try to round them all up. These are in no particular
Hello Kevin,
Thank you for taking the time to write this up! Your git script looks very
ambitious, and so this is thoughtful, informed feedback. (Incidentally I just
merged your git script changes). Let me respond to each point in turn:
1.2. 3.: Regarding string manipulation: I'm in favor of