bash-prompt-generator icon indicating copy to clipboard operation
bash-prompt-generator copied to clipboard

Cannot import Ubuntu 20.04 prompt

Open jxu opened this issue 1 year ago • 2 comments

Sorry for the issue spam. Here is the default PS1 that comes with my Ubuntu 20.04:

\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$

Pasting this into the website will make it complain about debian_chroot

jxu avatar Dec 31 '23 06:12 jxu

The ${debian_chroot:+($debian_chroot)} syntax should work now with 817e013. However, the Debian prompt uses a different syntax for color escape codes which is not supported by the generator/parser as of now.

Scriptim avatar Jan 26 '24 13:01 Scriptim