There are some problems with a number of spaces on travis: it differs. Cannot use the same code as for fish because output looks like {prompt}{spaces}^[0m ^[[{number}D and both `{spaces}` and `{number}` differ on my machine and in travis.