Closed sejktmcsdlmfhsc closed 7 years ago
can you give me the result of: git rev-parse --show-toplevel and the value of $HOME?
With those two values + $PWD I can reproduce your issue.
sure: $HOME : '/home/amnesia' git rev-parse --show-toplevel : /live/persistence/TailsData_unlocked/Persistent/Install/xonsh_offline/xonsh $PWD : '/home/amnesia/.local/lib/python3.4/site-packages/xonsh'
..and now it becomes more clear: $PWD actually starts with $HOME, but top_level does not. so idx looks at the shortened cwd and fails with it's too high index.
the reasons for this strange assembly of paths are:
..now I found a more regular directory - there it works fine:
quite an edge case indeed, but it should be supported, let me see if I can fix it on v0.3.2. What I will do is do matching right to left instead of left to right (which makes sense because at any point it can be a link).
Thanks this will make the code better :)
@sejktmcsdlmfhsc by the way you need to correct the size of the powerline symbols in your terminal to make it look really awesome. I think you need the powerline symbols to be 1pt or so bigger.
xontrib-powerline v0.3.2 should have fixed this, please test if you can.
@santagada works like charm - thanks a lot!! now I can start customizing it.. yes, there is something wrong with the powerline setup on this machine, I already tried de/increasing font size, unfortunately that did not help - maybe I should try another patched font..
I use http://nerdfonts.com/, they are heavy but awesome in that it has all the icons you could possibly need.
@santagada Thank you so much for the link - these NerdFonts are truely awesome!! Unfortunately they did not fix the display issue gap in my left facing arrows. I have have to check if this maybe is a gnome-terminal problem.
hi @santagada, I quite like your xontrib!! (..and look forward to configure it's styling on my machine ) unfortunately it throws an error as soon as I enter a git project directory (and looses the bottom toolbar):
the $PWD in this example is: '/home/amnesia/.local/lib/python3.4/site-packages/xonsh' not sure, what is happening there - any ideas? thank you so much! best, sej
my xonfig is: