This works:
ghost=$'\U1F47B'
PROMPT='time: %T $ghost > '
But is there a way to inline the hexadecimal version of the Unicode character?
This works:
ghost=$'\U1F47B'
PROMPT='time: %T $ghost > '
But is there a way to inline the hexadecimal version of the Unicode character?
The contents of $'...'
are not restricted to its special escape sequences. Such sequences are simply recognized when inside $'...'
; you can include other text as well, since they are otherwise identical to single quotes (i.e., no parameter expansion).
PROMPT=$'time: %T \U1F47B > '