agkozak / polyglot

Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, oksh, dash, yash, busybox ash, and osh
MIT License
181 stars 13 forks source link

mksh $HOME not shortened to "~" #6

Closed mabequinho closed 5 years ago

mabequinho commented 5 years ago

imageedit_2_4886626563 gentoo mksh56c

agkozak commented 5 years ago

It doesn't look as if the Polyglot Prompt has loaded - if it had, you'd be seeing something more like

username ~ $

How are you sourcing (loading) the prompt?

mabequinho commented 5 years ago

I`m sorry Mr @agkozak i should have mentioned that i commented the following line.

imageedit_2_2087810289

How are you sourcing (loading) the prompt?

source ~/clones/polyglot/polyglot.sh

agkozak commented 5 years ago

It looks as if your $HOME variable is set to /home/erika/ (the trailing slash would be a bit unusual). Could you check the value by running

echo $HOME

?

mabequinho commented 5 years ago

You`re right .

$ echo $HOME
/home/erika/
mabequinho commented 5 years ago

Same issue with bash, i really didn't manually set this value anywhere. I am closing, since it looks like an issue on my machine. Thanks for your time.

shampee commented 5 years ago

"${PWD/\/home\/USERNAME/\~}"