Jump to content

My new ~/.bashrc


securitybreach

Recommended Posts

securitybreach

I was playing around with ~/.bashrc and I made a very cool prompt:33ec9a54154420.gif

export PS1="┌─[\[\e[36;1m\]\u @ \[\e[32;1m\]\H\[\033[1;37m\]] \n\[\033[1;37m\]└─[\[\033[0;36m\]\w\[\033[1;37m\]]> \[\e[0m\]"

I copied the symbol (┌─) from the Archlinux forums to make the bashrcThanks

Edited by securitybreach
Link to comment
Share on other sites

V.T. Eric Layton

Don't understand it. :(Oh fiddle! What a dummy I am. I was looking at the code thinking that was your new terminal prompt. I didn't click on the image. Now that I HAVE CLICKED on the image, it is COOL!Yeeeeesh! Must have been having a senior moment earlier. :)

Edited by V.T. Eric Layton
Link to comment
Share on other sites

securitybreach
Don't understand it. :( Oh fiddle! What a dummy I am. I was looking at the code thinking that was your new terminal prompt. I didn't click on the image. Now that I HAVE CLICKED on the image, it is COOL! Yeeeeesh! Must have been having a senior moment earlier. :)
Heheheh. I am only 31 and I have those, so do not feel bad.Thanks
Link to comment
Share on other sites

That is pretty cool. That's one way to show the full path without taking up too much space.EDIT: Now that you have me interested and playing around with this, try this

export PS1="\n\[\033[01;32m\]\u@\h \[\033[01;33m\]\@ \[\033[01;34m\]\w\n\[\033[01;34m\]->\[\033[00m\] " export PS2="\[\033[01;34m\]->\[\033[00m\] "

Then

echo "The \ secondary \ prompt \ can \ also \ be \ changed."

I like it! :)

Edited by trigggl
Link to comment
Share on other sites

securitybreach
That is pretty cool. That's one way to show the full path without taking up too much space. EDIT: Now that you have me interested and playing around with this, try this
export PS1="\n\[\033[01;32m\]\u@\h \[\033[01;33m\]\@ \[\033[01;34m\]\w\n\[\033[01;34m\]->\[\033[00m\] "  export PS2="\[\033[01;34m\]->\[\033[00m\] "

Then

echo "The \  secondary \  prompt \  can \  also \  be \  changed."

I like it! :)

That is cool. I might have to incorporate some of yours into my bashrc. Modified ~/.bashrc:
export PS1="\n╔═ \[\033[01;32m\]\u@\h \[\033[01;37m\]\@ \n╚═══ \[\033[01;37m\]\w\[\033[01;34m\]->\[\033[00m\] "export PS2="\[\033[01;34m\]->\[\033[00m\] "

35b49254330179.gifThanks

Edited by securitybreach
Link to comment
Share on other sites

V.T. Eric Layton

I have a question...In Slackware, there is neither a .bashrc nor a .bash_profile file in /home/vtel57. What's up with that and how do I mod my prompt? :(

Link to comment
Share on other sites

Ok, I had to do it. I went off the wall and created my own PS1 and PS2. I've always needed to know what time it is in the morning when I do most of my work on the computer. I have a nasty habit of getting to work a hair late. So, using some UTF-8 characters...psmodification.th.png

Link to comment
Share on other sites

Do show!!!Thanks
Assuming your asking for the PS* lines...
PS1='\n\[\033[00;33m\]\342\225\224\342\225\246\342\225\220\342\225\241\[\033[01;32m\]\u@\h\[\033[00;33   m\]\342\225\236\342\225\220\342\225\241\[\033[01;31m\]\@\[\033[00;33m\]\342\225\236\342\225\220\342\225\241\[\033[01;3   4m\]\w\[\033[00;33m\]\342\225\236\342\225\220\342\225\227\n\[\033[00;33m\]\342\225\240\342\225\254\342\225\227\[\033[0   0m\] '   PS2='\[\033[00;33m\]\342\225\240\342\225\254\342\225\243\[\033[00m\] '

There are a lot of numbers so that the UTF characters won't get corrupted by editing the file with some other encoding.\342\225\236 is one character, \342\225\254 another and so on. When not using UTF in the terminal, they'll show up as squares.

Link to comment
Share on other sites

securitybreach

Ahh. I actually was asking for a shot of it because uzbl did not show the image for some reason. I reloaded and saw it.Thanks

Edited by securitybreach
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...