securitybreach Posted October 30, 2009 Share Posted October 30, 2009 (edited) I was playing around with ~/.bashrc and I made a very cool prompt: 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 October 30, 2009 by securitybreach Quote Link to comment Share on other sites More sharing options...
Bruno Posted October 30, 2009 Share Posted October 30, 2009 Very cool B) Bruno Quote Link to comment Share on other sites More sharing options...
V.T. Eric Layton Posted October 30, 2009 Share Posted October 30, 2009 Quote Link to comment Share on other sites More sharing options...
securitybreach Posted October 30, 2009 Author Share Posted October 30, 2009 ?? Dont like it?Thanks Quote Link to comment Share on other sites More sharing options...
securitybreach Posted October 30, 2009 Author Share Posted October 30, 2009 This site is really great for color schemes and such for urxvt, xterm, aterm, and others:http://tuxtraining.com/2009/06/27/terminal...xresources-fileHeres mine:Thanks Quote Link to comment Share on other sites More sharing options...
V.T. Eric Layton Posted October 31, 2009 Share Posted October 31, 2009 (edited) 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 October 31, 2009 by V.T. Eric Layton Quote Link to comment Share on other sites More sharing options...
securitybreach Posted October 31, 2009 Author Share Posted October 31, 2009 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 Quote Link to comment Share on other sites More sharing options...
trigggl Posted October 31, 2009 Share Posted October 31, 2009 (edited) 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 October 31, 2009 by trigggl Quote Link to comment Share on other sites More sharing options...
securitybreach Posted October 31, 2009 Author Share Posted October 31, 2009 (edited) 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\] " Thanks Edited October 31, 2009 by securitybreach Quote Link to comment Share on other sites More sharing options...
charlie Posted October 31, 2009 Share Posted October 31, 2009 hiI have used the following information for my prompt .. it is an easy to make changes here is the web site url http://maketecheasier.com/making-the-linux...lier/2009/03/19Charlie Quote Link to comment Share on other sites More sharing options...
V.T. Eric Layton Posted October 31, 2009 Share Posted October 31, 2009 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? Quote Link to comment Share on other sites More sharing options...
Bruno Posted October 31, 2009 Share Posted October 31, 2009 Good question Eric ! You will find the answer HereNote: the prompt used in the examples are the ones I am using Bruno Quote Link to comment Share on other sites More sharing options...
V.T. Eric Layton Posted October 31, 2009 Share Posted October 31, 2009 HAHA! Bruno never fails. Would you believe I thought about you just before I came back here just now. I was returning to post your link --> http://www.brunolinux.com/09-Distro_Specif...are_Tips_4.htmlEventually, I remember www.brunolinux.com. I really should make that my home page. ;)Thanks! Quote Link to comment Share on other sites More sharing options...
Bruno Posted November 1, 2009 Share Posted November 1, 2009 LOL . . . . . . . . At your service Eric Bruno Quote Link to comment Share on other sites More sharing options...
trigggl Posted November 3, 2009 Share Posted November 3, 2009 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... Quote Link to comment Share on other sites More sharing options...
securitybreach Posted November 3, 2009 Author Share Posted November 3, 2009 (edited) Do show!!Thanks Edited November 4, 2009 by securitybreach Quote Link to comment Share on other sites More sharing options...
trigggl Posted November 3, 2009 Share Posted November 3, 2009 Do show!!!ThanksAssuming 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. Quote Link to comment Share on other sites More sharing options...
securitybreach Posted November 3, 2009 Author Share Posted November 3, 2009 (edited) 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 November 3, 2009 by securitybreach Quote Link to comment Share on other sites More sharing options...
V.T. Eric Layton Posted November 3, 2009 Share Posted November 3, 2009 Spiffy. Techy. COOL! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.