bash prompts

User avatar
Sector11
Sperminator
Posts: 193
Joined: Mon Aug 19, 2013 4:15 am

Re: bash prompts

Unread post by Sector11 » Tue Jun 24, 2014 2:48 am

pidsley wrote:
Sector11 wrote:re-installing again :)
Next time don't reinstall; you will never learn anything that way.
You saying I can get in without a password?

HINT please....

PM, please, this is off topic.
I am THE resident noob, hands down no discussion. ... and
I wear my soap on a rope.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bash prompts

Unread post by machinebacon » Tue Jun 24, 2014 3:27 am

hint: init=/bin/sh into the kernel boot line ;)
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: bash prompts

Unread post by wuxmedia » Tue Jun 24, 2014 6:54 am

Classic, I use that one at work, can be /bin/bash.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: bash prompts

Unread post by rhowaldt » Tue Jun 24, 2014 9:18 am

somebody give that poor man an avatar.
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
Sector11
Sperminator
Posts: 193
Joined: Mon Aug 19, 2013 4:15 am

Re: bash prompts

Unread post by Sector11 » Tue Jun 24, 2014 2:59 pm

rhowaldt wrote:somebody give that poor man an avatar.
Noooooooooooooooooooooo! For the first time in YEARS I have HAIR!

@ everyone between the new hairy guys and here ... thanks ... I'll check that out. :D

Of course it's a bit late now but I can still look around. like pidsley says:
Next time don't reinstall; you will never learn anything that way.
and of course in the mean time as well.
I am THE resident noob, hands down no discussion. ... and
I wear my soap on a rope.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bash prompts

Unread post by machinebacon » Thu Jul 10, 2014 4:51 pm

http://bashrcgenerator.com/

Quick and dirty :)
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: bash prompts

Unread post by wuxmedia » Thu Jul 10, 2014 5:15 pm

Finally the prompt of my dreams:

bash:0>julien@mycomputer Mon Feb 22:mycomputer.example!$
8)
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: bash prompts

Unread post by dkeg » Sat Dec 27, 2014 6:01 pm

Can you tell I'm bored today ... since I don't ssh into other machines or care to see who I am, my machine name, or where I am

in $HOME/.bashrc ... bold white

Code: Select all

PS1='\[\e[1;37m\]\n+ \[\e[0m\]  '
and in /root/.bashrc ... bold red

Code: Select all

PS1='\[\e[1;31m\]\n+ \[\e[0m\]  '
swap out '+' for any desireable character

Work hard; Complain less

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: bash prompts

Unread post by Dr_Chroot » Sun Dec 28, 2014 2:46 am

^ Hey, that looks very sharp, dkeg. With a hash, it may confuse some that I might be in a root terminal, but I like it anyway :D
Attachments
pyro.png
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: bash prompts

Unread post by dkeg » Sun Dec 28, 2014 3:01 am

right on. Well, as long as it doesn't confuse you, that's all that matters. BTW, you have an uncommmented out ${vol} in your statusbar

Work hard; Complain less

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: bash prompts

Unread post by Dr_Chroot » Sun Dec 28, 2014 5:35 am

dkeg wrote:BTW, you have an uncommmented out ${vol} in your statusbar
You'd swear I was blind; I had to lean in towards the screen to see that stray "0". Thanks XD
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bash prompts

Unread post by machinebacon » Sun Dec 28, 2014 10:56 am

^ If you don't know of a girl is hot or not so hot, send her nude pics to dkeg, he will tell you :)
..gnutella..

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: bash prompts

Unread post by rhowaldt » Mon May 25, 2015 12:38 am

rhowaldt wrote:i always liked those prompts that had the info, then the ASCII-lines and shit to the line underneath. beautiful. i use a much simpler prompt myself but if i ever switch it will be to something like that.
finally, 1,5 years later, my newly found ricing joy has aimed itself at my PS1, and with a new and better understanding of unicode characters, i did indeed switch.

Code: Select all

PS1=$'\n\\[\e[1;34m\\]\u250C\u2524\u@\h [\w]\\[\e[0m\\]\n\\[\e[1;34m\\]\u2514\u2500\u2500\u2524\\[\e[0m\\]\$ '
debated whether to add job-number and history-number to it, but i never use it so left it out for now.
250515_0333.png
another intricate bit of customization: changed my hostname from 'grill' to 'lalala' :D
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: bash prompts

Unread post by kexolino » Mon May 25, 2015 5:58 am

Then we turned it around :) I used to have a two-liner like that, but now it's just this:

Code: Select all

PS1="$HC$FBLE\w $FMAG» $RS"
Attachments
prompt.png
prompt.png (988 Bytes) Viewed 6290 times

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: bash prompts

Unread post by dkeg » Tue Sep 08, 2015 2:53 am

prompt hmm, well right now its just a single dash. Its color is based on my battery state && level.

Code: Select all

PS1="\[\$(/home/dkeg/bin/promptd)\] - \[\e[0m\]"

Work hard; Complain less

Post Reply