Quote:
Originally Posted by keefaz
Something like this?
Code:
PROMPT_COMMAND='printf "\033k%s@%s:%s\033\\" "${USER}" ${PWD##$HOME*/}'
|
I think you mean
Code:
PROMPT_COMMAND='printf "\033k%s@%s:%s\033\\" "${USER}" ${PWD##*/}'
I.e. reduce all pathnames, not only the ones that start with the value of $HOME.
But the own homedir is not printed as ~ then.