Register - Login
Views: 99409260
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-24-22 10:41:20 PM
Jul - Computers and Technology - $PS1 New poll - New thread - New reply
Next newer thread | Next older thread
paulguy

Green Birdo
Level: 93


Posts: 1313/2294
EXP: 8026090
For next: 26720

Since: 09-14-07

From: Buffalo, NY

Since last post: 9.7 years
Last activity: 9.6 years

Posted on 02-20-11 03:16:04 AM Link | Quote
Paulguy's Post configuration
I'm bored so I just configured the prompt statements for bash.


PS1="\033[01;37m[\033[01;33m\t\033[01;37m]\033[00m \033[01;34m\u@\h\033[00m \033[01;32m\w\033[00m\n\033[01;37m\$\033[00m "
PS2="\033[01;32m]\033[00m "

If you have any other customizations, I'd be curious to know of them... I guess think of this as a screenshot thread, but for shells and terminals.

____________________
Taryn

Passed away.

Thanks for being a part of us, even if it wasn't always on the best of terms.

1987-2014


Level: 204


Posts: 12116/14742
EXP: 121635962
For next: 1713856

Since: 09-01-09

From: Seattle

Since last post: 10.1 years
Last activity: 9.8 years

Posted on 02-20-11 03:27:51 AM Link | Quote
I remember fooling around with DOS's prompt command as a youngster. Once I got this really long prompt that took up most of the screen's width and had stuff like the date, time, and DOS version in it

____________________

TKB Super Mario Bros. β€’ TKB Super Mario Bros., Volume II
Post 1215/1311 (33 days), online 6 hours ago
Posted on 02-20-11 03:32:46 AM Link | Quote




#59


That's from acmlm.rustedlogic.net, but I've used the same thing (with different colors) at work ... $PS2 stayed at the default "> " since I didn't even know about it


My Windows command prompt is the default $p$g, or sometimes $g if I'm doing something in one directory and want to keep it short ... and I use a 6x8 font (yellow on blue like above), but had Press Start K for years before

____________________
β€” Bloodstar β€”
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8198/11363

Joined
07-06-07
Active
2 days ago
Posted on 02-20-11 03:48:20 AM Link | Quote
Can we post about prompt code that's broken, too?

'\e[0;32m\][\e[1;37m\]\u\e[0;34m\]@\e[1;37m\]\h\e[0;37m\] \W\e[0;32m\]]\e[0;37m\]\$ ' - this is my prompt's supposed code. I can't see where it's supposed to fail.

[bloodstar@cerise ~]$ (text entered is this color too)is what I'm trying to shoot for, but it's just not working. It was at one point, but at a certain length it would just loop around and overwrite the actual prompt itself.

So yeah, I'm baffled.

____________________
BMF IS A LEAPFROG
paulguy

Green Birdo
Level: 93


Posts: 1315/2294
EXP: 8026090
For next: 26720

Since: 09-14-07

From: Buffalo, NY

Since last post: 9.7 years
Last activity: 9.6 years

Posted on 02-20-11 04:48:30 AM (last edited by paulguy at 02-20-11 02:07 AM) Link | Quote
Paulguy's Post configuration
I got your command line to look correct on here by changing the control codes to the style I have but I had the same problem. Honestly, I have the same problem with my own prompt code.

EDIT: Fixed mine:

PS1="\[\033[01;37m[\033[01;33m\t\033[01;37m]\033[00m \033[01;34m\u@\h\033[00m \033[01;32m\w\033[00m\]\n\[\033[01;37m\]\$\[\033[00m\] "
PS2="\[\033[01;32m\]]\[\033[00m\] "

EDIT2: and bloodstar's

PS1="\[\e[0;32m\][\[\e[1;37m\]\u\[\e[0;34m\]@\[\e[1;37m\]\h\[\e[0;37m\] \W\[\e[0;32m\]]\[\e[0;37m\]\$"

____________________
sofi

🌠
Level: 116


Posts: 11/4152
EXP: 17095878
For next: 228215

Since: 02-18-11

Pronouns: she/her
From: γŸγΎγ”γ£γ‘ζ˜Ÿ

Since last post: 1 day
Last activity: 21 hours

Posted on 02-20-11 09:06:41 AM Link | Quote
I'm using zsh and not bash but I guess I can still post my prompt here.



____________________
β€”Sofi
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 4079/5390
EXP: 29053064
For next: 281941

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 334 days
Last activity: 334 days

Posted on 02-22-11 02:37:37 AM (last edited by Rena at 02-21-11 11:40 PM) Link | Quote
Post #4079 Β· 02-21-11 09:37:37 PM
[rena@mercury:~/foo/bar 506]
$


The number is the history index, so I could do !506 to recall this command, but I never use that anyway. It also displays the return value from the previous command if not zero (and the error message associated, which is largely useless because nothing actually returns error message numbers).

I keep three terminals at the bottom of my right screen, all 80x25 with at least two tabs. One usually has the interactive Lua interpreter running for quick calculations and tests. The windows are pretty minimalistic having only the tabs and scrollbar with semi-opaque black background.

____________________
Next newer thread | Next older thread
Jul - Computers and Technology - $PS1 New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
Β©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

27 database queries, 1 query cache hits.
Query execution time:  0.088021 seconds
Script execution time:  0.019268 seconds
Total render time:  0.107288 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 148 column 37 - Warning: unescaped & or unknown entity "&id"
line 147 column 177 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 91 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 177 column 102 - Warning: unescaped & or unknown entity "&postid"
line 179 column 74 - Warning: <style> isn't allowed in <td> elements
line 179 column 9 - Info: <td> previously mentioned
line 188 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 190 column 9 - Warning: missing <tr>
line 208 column 13 - Warning: missing <tr>
line 209 column 102 - Warning: unescaped & or unknown entity "&postid"
line 211 column 404 - Warning: missing </div>
line 214 column 15 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 215 column 25 - Warning: missing <tr>
line 216 column 33 - Warning: <style> isn't allowed in <td> elements
line 215 column 25 - Info: <td> previously mentioned
line 228 column 33 - Warning: missing <tr>
line 229 column 122 - Warning: unescaped & or unknown entity "&postid"
line 231 column 99 - Warning: <style> isn't allowed in <td> elements
line 231 column 25 - Info: <td> previously mentioned
line 231 column 1061 - Warning: unescaped & or unknown entity "&m"
line 231 column 1068 - Warning: unescaped & or unknown entity "&e"
line 231 column 1189 - Warning: unescaped & or unknown entity "&e"
line 240 column 17 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 241 column 25 - Warning: missing <tr>
line 243 column 33 - Warning: missing </font> before </td>
line 253 column 25 - Warning: plain text isn't allowed in <tr> elements
line 241 column 25 - Info: <tr> previously mentioned
line 255 column 33 - Warning: missing <tr>
line 256 column 122 - Warning: unescaped & or unknown entity "&postid"
line 256 column 47 - Warning: missing </nobr> before </table>
line 266 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 268 column 9 - Warning: missing <tr>
line 286 column 13 - Warning: missing <tr>
line 287 column 102 - Warning: unescaped & or unknown entity "&postid"
line 289 column 74 - Warning: <style> isn't allowed in <td> elements
line 289 column 9 - Info: <td> previously mentioned
line 301 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 303 column 9 - Warning: missing <tr>
line 321 column 13 - Warning: missing <tr>
line 322 column 102 - Warning: unescaped & or unknown entity "&postid"
line 326 column 466 - Warning: discarding unexpected </img>
line 329 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 331 column 9 - Warning: missing <tr>
line 349 column 13 - Warning: missing <tr>
line 350 column 102 - Warning: unescaped & or unknown entity "&postid"
line 358 column 5315 - Warning: replacing unexpected input with </input>
line 358 column 5629 - Warning: discarding unexpected </span>
line 361 column 17 - Warning: missing <tr>
line 361 column 17 - Warning: discarding unexpected <table>
line 364 column 35 - Warning: missing <tr>
line 364 column 50 - Warning: missing </font> before </td>
line 364 column 91 - Warning: missing </font> before </table>
line 366 column 35 - Warning: missing <tr>
line 366 column 50 - Warning: missing </font> before </td>
line 367 column 37 - Warning: unescaped & or unknown entity "&id"
line 366 column 177 - Warning: missing </font> before </table>
line 368 column 17 - Warning: discarding unexpected </textarea>
line 368 column 28 - Warning: discarding unexpected </form>
line 368 column 35 - Warning: discarding unexpected </embed>
line 368 column 43 - Warning: discarding unexpected </noembed>
line 368 column 53 - Warning: discarding unexpected </noscript>
line 368 column 64 - Warning: discarding unexpected </noembed>
line 368 column 74 - Warning: discarding unexpected </embed>
line 368 column 82 - Warning: discarding unexpected </table>
line 368 column 90 - Warning: discarding unexpected </table>
line 370 column 9 - Warning: missing </font> before <table>
line 382 column 25 - Warning: discarding unexpected </font>
line 391 column 57 - Warning: discarding unexpected </font>
line 369 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 148 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 160 column 11 - Warning: <img> lacks "alt" attribute
line 161 column 22 - Warning: <img> lacks "alt" attribute
line 161 column 63 - Warning: <img> lacks "alt" attribute
line 161 column 112 - Warning: <img> lacks "alt" attribute
line 161 column 161 - Warning: <img> lacks "alt" attribute
line 162 column 11 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 181 column 1403 - Warning: <img> lacks "alt" attribute
line 185 column 1779 - Warning: <img> proprietary attribute value "absmiddle"
line 185 column 1779 - Warning: <img> lacks "alt" attribute
line 193 column 23 - Warning: <img> lacks "alt" attribute
line 193 column 64 - Warning: <img> lacks "alt" attribute
line 193 column 113 - Warning: <img> lacks "alt" attribute
line 193 column 163 - Warning: <img> lacks "alt" attribute
line 194 column 11 - Warning: <img> lacks "alt" attribute
line 204 column 15 - Warning: <img> lacks "alt" attribute
line 211 column 740 - Warning: <img> proprietary attribute value "absmiddle"
line 211 column 740 - Warning: <img> lacks "alt" attribute
line 211 column 888 - Warning: <img> lacks "alt" attribute
line 212 column 1197 - Warning: <img> lacks "alt" attribute
line 221 column 25 - Warning: <img> lacks "alt" attribute
line 223 column 45 - Warning: <img> lacks "alt" attribute
line 231 column 1010 - Warning: <img> lacks "alt" attribute
line 231 column 1117 - Warning: <center> anchor "acj1k3" already defined
line 231 column 1135 - Warning: <img> lacks "alt" attribute
line 233 column 1208 - Warning: <img> lacks "alt" attribute
line 234 column 1290 - Warning: <img> lacks "alt" attribute
line 236 column 1505 - Warning: <img> proprietary attribute value "absmiddle"
line 236 column 1505 - Warning: <img> lacks "alt" attribute
line 239 column 1794 - Warning: <img> proprietary attribute value "absmiddle"
line 239 column 1794 - Warning: <img> lacks "alt" attribute
line 244 column 43 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 43 - Warning: <img> lacks "alt" attribute
line 244 column 86 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 86 - Warning: <img> lacks "alt" attribute
line 244 column 129 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 129 - Warning: <img> lacks "alt" attribute
line 244 column 172 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 172 - Warning: <img> lacks "alt" attribute
line 244 column 215 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 215 - Warning: <img> lacks "alt" attribute
line 244 column 258 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 258 - Warning: <img> lacks "alt" attribute
line 244 column 301 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 301 - Warning: <img> lacks "alt" attribute
line 246 column 33 - Warning: <img> lacks "alt" attribute
line 251 column 37 - Warning: <img> lacks "alt" attribute
line 258 column 308 - Warning: <img> lacks "alt" attribute
line 264 column 1534 - Warning: <img> proprietary attribute value "absmiddle"
line 264 column 1534 - Warning: <img> lacks "alt" attribute
line 270 column 11 - Warning: <img> lacks "alt" attribute
line 271 column 22 - Warning: <img> lacks "alt" attribute
line 271 column 63 - Warning: <img> lacks "alt" attribute
line 271 column 112 - Warning: <img> lacks "alt" attribute
line 271 column 161 - Warning: <img> lacks "alt" attribute
line 272 column 11 - Warning: <img> lacks "alt" attribute
line 282 column 15 - Warning: <img> lacks "alt" attribute
line 305 column 11 - Warning: <img> lacks "alt" attribute
line 306 column 23 - Warning: <img> lacks "alt" attribute
line 306 column 64 - Warning: <img> lacks "alt" attribute
line 306 column 113 - Warning: <img> lacks "alt" attribute
line 306 column 163 - Warning: <img> lacks "alt" attribute
line 307 column 11 - Warning: <img> lacks "alt" attribute
line 317 column 15 - Warning: <img> lacks "alt" attribute
line 324 column 368 - Warning: <img> proprietary attribute value "absmiddle"
line 324 column 368 - Warning: <img> lacks "alt" attribute
line 326 column 426 - Warning: <img> lacks "alt" attribute
line 334 column 23 - Warning: <img> lacks "alt" attribute
line 334 column 64 - Warning: <img> lacks "alt" attribute
line 334 column 113 - Warning: <img> lacks "alt" attribute
line 334 column 163 - Warning: <img> lacks "alt" attribute
line 345 column 15 - Warning: <img> lacks "alt" attribute
line 356 column 4708 - Warning: <img> proprietary attribute value "absmiddle"
line 356 column 4708 - Warning: <img> lacks "alt" attribute
line 367 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 367 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 367 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 376 column 25 - Warning: <img> lacks "alt" attribute
line 381 column 267 - Warning: <img> lacks "alt" attribute
line 149 column 50 - Warning: trimming empty <font>
line 358 column 5382 - Warning: trimming empty <label>
line 361 column 17 - Warning: trimming empty <tr>
line 364 column 50 - Warning: trimming empty <font>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
line 209 column 27 - Warning: <nobr> is not approved by W3C
line 211 column 74 - Warning: <table> proprietary attribute "height"
line 229 column 47 - Warning: <nobr> is not approved by W3C
line 256 column 47 - Warning: <nobr> is not approved by W3C
line 258 column 99 - Warning: <table> proprietary attribute "height"
line 258 column 99 - Warning: <table> proprietary attribute "background"
line 258 column 507 - Warning: <table> proprietary attribute "background"
line 258 column 661 - Warning: <td> proprietary attribute "background"
line 287 column 27 - Warning: <nobr> is not approved by W3C
line 322 column 27 - Warning: <nobr> is not approved by W3C
line 350 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 183 warnings and 0 errors!


The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md