powerline-go
powerline-go copied to clipboard
powerline-go prompt does not display current working directory. instead displays a stale directory.
slester C02YQ1Z4LVCJ ~ Development $ pwd
/Users/slester/Development
slester C02YQ1Z4LVCJ ~ Development $ cd slingshot_tools/
slester C02YQ1Z4LVCJ ~ Development $ pwd
/Users/slester/Development/slingshot_tools
slester C02YQ1Z4LVCJ ~ Development $
Yes, I too saw this issue.. I'm using bash on High Sierra...
One possible reason might be that powerline-go isn't executed after each command properly, another reason would be that $PWD isn't properly updated.
Could you try to verify both?
$PWD is updated.. But I think the problem is that powerline-go is not executed after every command.
I can see my PS1 is:
declare -x PS1="\\[\\e[38;5;250m\\]\\[\\e[48;5;240m\\] \\u \\[\\e[48;5;238m\\]\\[\\e[38;5;240m\\]\\[\\e[0m\\]\\[\\e[38;5;250m\\]\\[\\e[48;5;238m\\] \\h \\[\\e[48;5;31m\\]\\[\\e[38;5;238m\\]\\[\\e[0m\\]\\[\\e[38;5;15m\\]\\[\\e[48;5;31m\\] ~ \\[\\e[48;5;236m\\]\\[\\e[38;5;31m\\]\\[\\e[0m\\]\\[\\e[38;5;15m\\]\\[\\e[48;5;236m\\] \\\$ \\[\\e[0m\\]\\[\\e[38;5;236m\\]\\[\\e[0m\\] "
I did try to change export PS1 line in my profile but couldn't work out the problem.