powerline-go icon indicating copy to clipboard operation
powerline-go copied to clipboard

powerline-go prompt does not display current working directory. instead displays a stale directory.

Open slester87 opened this issue 4 years ago • 3 comments

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  $  Screen Shot 2020-07-31 at 11 34 21 AM

slester87 avatar Jul 31 '20 18:07 slester87

Yes, I too saw this issue.. I'm using bash on High Sierra...

plato79 avatar Sep 29 '20 14:09 plato79

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?

justjanne avatar Oct 02 '20 05:10 justjanne

$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.

plato79 avatar Dec 04 '20 12:12 plato79