agkozak / polyglot

Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, oksh, dash, yash, busybox ash, and osh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mksh $HOME not shortened to "~"

mabequinho opened this issue · comments

commented

imageedit_2_4886626563
gentoo mksh56c

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?

commented

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

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

?

commented

You`re right .

$ echo $HOME
/home/erika/

commented

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.

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