Guild Wars Forums - GW Guru
 
 

Go Back   Guild Wars Forums - GW Guru > Forest of True Sight > Technician's Corner

Notices

Reply
 
Thread Tools Display Modes
Old Mar 17, 2009, 10:09 PM // 22:09   #1
Site Contributor
 
Join Date: Jun 2005
Profession: R/
Advertisement

Disable Ads
Default Need Linux and dos help please!!

I'm hoping you geniuses can help me, I've looked online, in my text book and my notes and can't find it anywhere. Here's what I need to do, set my Linux (cygwin) prompt to be my name followed by a ‘>’ and the bell/keyboard sound with each prompt. And the dos is almost the same, set the DOS prompt to be my name followed by the current date and a ‘>’.

If anyone can help I'd really appreciate it.
Commander Ryker is offline   Reply With Quote
Old Mar 17, 2009, 11:00 PM // 23:00   #2
Academy Page
 
Join Date: Nov 2005
Location: Athens, Greece
Default

for DOS
prompt /? will give you your available options.
In your case you should write something like, prompt your_name$D$G

for linux, in my /etc/skel/.bashrc there is the following directive

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'

but that's as far as I can help.

About the "bell" sounds, I have no clues in either case.
ne33us is offline   Reply With Quote
Old Mar 17, 2009, 11:46 PM // 23:46   #3
Site Contributor
 
Join Date: Jun 2005
Profession: R/
Default

Woot! The dos thing worked. Thank you.

Now for the damn linux.......grr. I put in exactly what you had and nothing. Here's a copy of it.

$ PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'

[email protected] ~
$
Commander Ryker is offline   Reply With Quote
Old Mar 18, 2009, 02:11 PM // 14:11   #4
Academy Page
 
Join Date: Nov 2005
Location: Athens, Greece
Default

Nevermind about the PROMPT_COMMAND thing.
try this instead

PS1='\a\d my_name_here>'

\a is for the bell
\d is for the date

use man bash to read more about the prompt (or man sh or whichever shell you use)
ne33us is offline   Reply With Quote
Old Mar 18, 2009, 06:40 PM // 18:40   #5
Site Contributor
 
Join Date: Jun 2005
Profession: R/
Default

That worked! Thank you so much. You totally rock!!
Commander Ryker is offline   Reply With Quote
Reply

Share This Forum!  
 
 
           

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to have GW run on Linux? Retribution X Technician's Corner 5 May 16, 2007 10:36 AM // 10:36
Aecum Technician's Corner 33 May 04, 2007 10:57 PM // 22:57
Natalie Horthwood Technician's Corner 18 Sep 22, 2006 12:02 PM // 12:02
Hanuman li Tosh Technician's Corner 1 Nov 09, 2005 03:38 AM // 03:38
Lord Behemoth Technician's Corner 2 Jun 11, 2005 12:03 PM // 12:03


All times are GMT. The time now is 05:49 AM // 05:49.


Powered by: vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
jQuery(document).ready(checkAds()); function checkAds(){if (document.getElementById('adsense')!=undefined){document.write("_gaq.push(['_trackEvent', 'Adblock', 'Unblocked', 'false',,true]);");}else{document.write("