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.
Need Linux and dos help please!!
Commander Ryker
ne33us
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.
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.
Commander Ryker
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] ~
$
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] ~
$
ne33us
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)
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)
Commander Ryker
That worked! Thank you so much. You totally rock!!