Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to change display in shell Post 302438003 by tirwit on Saturday 17th of July 2010 08:10:24 AM
Old 07-17-2010
It worked. Smilie But now I want it do have this prompt by default, so I added "PS1='\W $ '" to my bashrc file. However it doesn't do anything. Do I need it to put it other form in bashrc so it shows the prompt I want every time I open a shell?

What can I add to bashrc so the prompt stays like this:
[computer I'm working on, changing this if I'm working on a remote computer]: [folder I'm in (the PS1 thing)] $
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell Script Display?

I remember learning that there is a way to make a shell script display the script itself to standard output while the script is being executed but I can't find how to do that. Any pointers? (2 Replies)
Discussion started by: wmosley2
2 Replies

2. Solaris

How to change display resolution

Hi, I would like to know how to change the display resolution in solaris on sparc. Can anyone please help me. Regards, Raja (3 Replies)
Discussion started by: RajaRC
3 Replies

3. UNIX for Dummies Questions & Answers

How to change display resolution in UnixV4.0D

I would like to know how to change the display resolution in UnixV4.0D. Can anyone please help me. Regards, Avgust (1 Reply)
Discussion started by: avgust
1 Replies

4. UNIX for Dummies Questions & Answers

Cannot change my display to high resolution

Hi all, i am one of the newbies with linux. i just install the Enterprise AS on my ibm z60t. I am trying to change the color setting to hight resolution, unfortunately, it does not work. it works only with the 256 color setting. It seems the widescreen or the vga card of my notebook does not... (3 Replies)
Discussion started by: sanlen
3 Replies

5. Post Here to Contact Site Administrators and Moderators

Change in display of date of postings

I would like to propose to change the display of dates in the postings, which is currently mm-dd-yy. To avoid ambiguity, I would like to propose dd-Mmm-yyyy. Thank you for your anticipated consideration. (5 Replies)
Discussion started by: figaro
5 Replies

6. Post Here to Contact Site Administrators and Moderators

Display Name change

Hi Currently my display name is "vasuarjula". Is there a way i can change my display name without changing my emailID and password. (2 Replies)
Discussion started by: vasuarjula
2 Replies

7. Shell Programming and Scripting

how to change unix cmd display prompt?

I am new to to unix and I want to make my own basic shell. What is the code I can use to change the unix cmd console display? For example my unix display prompt says MyCompterName~, I want it to say WhatEverMan~ (3 Replies)
Discussion started by: megaearth77
3 Replies

8. AIX

Change AIX display resolution ?

Hello, Running X on AIX local display - want to change resolution. On Linux for example I used xrandr. ? thanks Vilius (1 Reply)
Discussion started by: vilius
1 Replies

9. Emergency UNIX and Linux Support

Change the display format for ls -l command in AIX

Hi, I am using AIX 5.3. In my server if I list the file , I got the below result in below format. ********************************************* -rw-rw--w- 1 letapp1 staff 0 Jun 8 02:53 CC00030710.cntrl ********************************************* But now I am seeing... (22 Replies)
Discussion started by: puni
22 Replies
whatnow(1)						      General Commands Manual							whatnow(1)

NAME
whatnow - prompting front-end for send (only available within the message handling system, mh) SYNOPSIS
whatnow [options] [file] OPTIONS
Specifies the folder in which whatnow searches for the draft message. By default, the current message in the named folder is used. If you wish to specify another message, use the -draftmessage option. For more information on using a draft folder, see comp(1). The -draftfolder option can be set up in your user profile; see mh_profile(4) for more information. Specifies the draft message to be used. If you specify a folder with the -draftfolder option, the -draftmessage option takes the number of a message in that folder. If you do not specify a folder, -draftmessage takes the name of a file. If you do not give an absolute pathname (one beginning with a / or or ), -draftmessage assumes that the file is located in your Mail directory. (This is different from the file argument to whatnow, which assumes that the file you name is in your current working directory.) Specifies the name of the editor you want to use to edit the draft message. Any legal edi- tor can be specified. This option is used only if you select the edit response to the What now? prompt. Prints a list of the valid options for this command. Prevents the initial invocation of an editor when an MH command is run. Normally, when you enter an MH command such as comp, dist, forw, or repl, the whatnow program is called to start the initial edit of the draft message. If you add this option to the whatnow entry in your is disabled. This is a convenient way of disabling this edit for all MH commands, rather than adding the -noedit entry to the entries for the individual commands in Specifies the prompt used by whatnow. The prompt you receive when you invoke whatnow can be specified as a string with this option. If the prompt contains spaces, you must enclose the entire string in double quotes (" "). The default prompt is What now? DESCRIPTION
After you have finished editing a draft message in comp, dist, forw or repl, the whatnow program prompts you for the next required action. Press <Return> at the What now? prompt to see a list of the available responses. These responses are: display [options] edit [editor] [options] list [options] push [options] quit [-delete] refile [option] +folder send [options] whom [options] For more information on the options available with these commands, see the following reference pages: refile(1), send(1), whom(1). Use display if you have been using repl or dist and want to see the original message. Use edit if you want to continue editing the draft. Use list to display the draft message. If you use push, send operates in the background and frees your terminal while the message is being sent. Use quit to exit from whatnow and to save the draft message. The -delete option to quit will exit from whatnow and delete the draft mes- sage. Use refile +folder to refile the draft message in a specified folder. The send response will cause the message to be delivered. Use whom to find out who will receive the mail when it is sent. Unless the -noedit option is given, the editor starts when whatnow is invoked. For the edit response, you can specify an editor if you wish to override the editor specified in your file. If you specify an editor with the edit response, any valid option to the editor is valid. Similarly, for the send and whom responses, any valid option to send and whom commands, respectively, are valid. For the push response, use any valid option to send. MH invokes send with the -push option. For the refile response, any valid option to the fileproc is valid. The fileproc is the element of your mail profile which defines the pro- gram used to refile messages in another folder. For more information, see mh_profile(4). For the display and list responses, any valid argument to the lproc is valid. If any non-option arguments are present, then the pathname of the draft is excluded from the argument list given to the lproc (this is useful for listing another MH message). The lproc is the element in your mail profile which defines the program used to display draft messages on your screen. For more information, see mh_profile(4). See mh_profile(4) for further information about how editors are used by MH. It also describes lproc and fileproc and shows how complex variables can be used to direct the actions performed by whatnow. Although whatnow is usually invoked by other commands, you can use it as a separate command. You can run whatnow on a named file by speci- fying the file as the file argument. If you do not give an absolute pathname (one beginning with a / or or ), whatnow assumes that the named file is in your current working directory. If you want to run whatnow on an existing message, use the -draftfolder and -draftmessage options. RESTRICTIONS
If the sendproc entry in your is send, whatnow uses a built-in program rather than running the regular send. If you define your own send- proc program, you should not call it send, as whatnow will not run it. PROFILE COMPONENTS
Path: To determine your MH directory Draft-Folder: To find the default draft folder Editor: To override the default editor lasteditor-next: To name an editor to be used after exit from lasteditor fileproc: Program to refile the message lproc: Program to list the contents of a message sendproc: Program to send the message whomproc: Program to determine who a message would go to EXAMPLES
In the following example, whatnow takes the current message in the folder +drafts, and asks what you want to do with it: % whatnow -draft- folder +drafts What now? In the following example, whatnow takes message 6 from the folder +drafts: % whatnow -draftfolder +drafts -draftmessage 6 What now? The following example sets the prompt to be Now What?: % whatnow -prompt "Now What?" Now what? FILES
The user profile. SEE ALSO
comp(1), send(1), whom(1) whatnow(1)
All times are GMT -4. The time now is 02:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy