-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bash prompt #138
Comments
simple, no colors, exit code at line beginning
|
advanced, colors, timestamp, exit code, directory export PS1="${debian_chroot:+($debian_chroot)}[\e[00;33m][\t][\e[0m] $(tput rev)[$(tput sgr0)] \u@\h:[$(tput rev)]\w[$(tput sgr0)][$(tput bold)] $ [$(tput sgr0)]" |
What about that? PS1="\[\e[00;37m\]┌─[\t][\[\e[0m\]\[\e[01;31m\]\\$\[\e[0m\]\[\e[00;37m\]]\n└─\\[\e[0m\]\[\e[01;32m\]\u\[\e[0m\]\[\e[00;37m\]@\[\e[0m\]\[\e[01;33m\]\h\[\e[0m\]\[\e[00;37m\]:[\[\e[0m\]\[\e[00;36m\]\w\[\e[0m\]\[\e[00;37m\]]\[\e[0m\] is a lil more colorful.. but miss the exitcode D: |
|
on my computer it does not work properly: it wraps in a strange & wrong way when the line exceeds the width of the window. |
In wich way? What commands u use? |
And wich terminal emu? I tested on guake and it works properly |
b39ef4a should be ok, with also some minor improvement on the previously-posted screenshot (cyan dirname, better user color handling, local variables everywhere). I'm wondering if a separate package (submodule) would be appropriate for such a small enhancement. |
Our current bash prompt is rather basic. An improved one is not just a vanity feature: it also aids in testing. Especially, it would be good to see the last exit code appear in the prompt.
The text was updated successfully, but these errors were encountered: