Sponsored Content
Full Discussion: Changing the prompt in CSH
Top Forums Shell Programming and Scripting Changing the prompt in CSH Post 302857571 by ajayram_arya on Thursday 26th of September 2013 03:04:33 PM
Old 09-26-2013
SunOS <servername> 5.10 Generic_127111-09 sun4u sparc SUNW,SPARC-Enterprise

the above commands doesnt change to username,hostname.

After setting the path i get the same result

Code:
%B%m%b %c3 %#

---------- Post updated at 02:04 PM ---------- Previous update was at 01:33 PM ----------

Appreciate if someone can help me on this !!!!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

current directory as part of the csh prompt

I would like my csh prompt to behave like the linux csh prompt setting done by linux command (set prompt="%n@%m %c]$ ") how do I do that? What I'm trying to do is that I would like to see what directory I'm in by looking at the prompt. I've figured out that %n is like $user, and %m is like... (3 Replies)
Discussion started by: jamesloh
3 Replies

2. UNIX for Dummies Questions & Answers

Changing the prompt

Phew simple question, I want to display the my directory path in prompt. Did the following in .profile PS1=`pwd` export PS! Worked, but it always points to HOME directory. When i do a cd, it doesn't change. What am i missing. Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

3. UNIX for Dummies Questions & Answers

Changing Prompt in sh

I know no one has ever asked this before {not :D } but I am trying to set the prompt in the .profile under sh. I have tried everything I have seen on the web in regards to this, with no success. The OS is SCO Unixware 7.1.1, {not by my choice}. All the examples I see seem to be for ksh, which is... (1 Reply)
Discussion started by: jcc5169
1 Replies

4. Solaris

Changing prompt

I currently have this as my prompt when I log in (shell is sh): PS1="`hostname ` # " My question is how do I add the current directory to that prompt? Is there a way? Thanks. (5 Replies)
Discussion started by: kjbaumann
5 Replies

5. UNIX for Advanced & Expert Users

Changing the password prompt

Is there any way I can change the prompt which asks for the password on a UNIX system? e.g. When I login using Telnet instead of "Password" I should get "Correct Password". Thanks, Vineet (3 Replies)
Discussion started by: vineetd
3 Replies

6. Shell Programming and Scripting

tcsh/csh: set prompt in production to color red

Hi folks This is our prompt at the moment oracle@pinkipinki:/opt/oracle> grep 'set prompt' .cshrc set prompt = "$user@`uname -n`:$cwd> " We wish to have in production the same prompt, but red. Howto do that? I tried a lot a internet manuals, but it doesn't work. (1 Reply)
Discussion started by: slashdotweenie
1 Replies

7. Shell Programming and Scripting

Changing the shell prompt

Hi, I want to change the shell prompt, using the cd command. I have a shell prompt like this - p78-mfx(dgaw1078/9781)$ Now i do this - p78-mfx(dgaw1078/9781)$ cd log4j here the shell prompt should change like this - p78-mfx(dgaw1078/9781)log4j$ (6 Replies)
Discussion started by: arunkumarmc
6 Replies

8. Shell Programming and Scripting

Changing the file name to a different one using csh

I have a file name n10-z30-dsr65-ndelt1.00-varp0.08-16x12drw-csq-msf.ps and I want to remove the varp info tag to get n10-z30-dsr65-ndelt1.00-16x12drw-csq-msf.ps Trying to use tr, but when I tried replacing varp with ooo I am getting the results below: echo... (2 Replies)
Discussion started by: kristinu
2 Replies

9. UNIX for Dummies Questions & Answers

Problem in C shell (csh) prompt setting containing the '$' char

Hi, I am trying to customize the command prompt of the C shell as follows: set prompt=" " The above one works fine but when I try to add a '$' (dollar) symbol into the string as set prompt=" " I am getting the error as: Illegal variable name However, this one set prompt = "-- %T %n %~ --... (2 Replies)
Discussion started by: royalibrahim
2 Replies

10. Shell Programming and Scripting

Changing script from csh to bash

Hello Guys I have a script working fine on csh, but I would like to change it to bash, how I should change this command to be able to work as bash script. :wall: if ( $fsw > "0" ) then foreach swath ( `awk 'BEGIN {for (i='$fsw';i<='$lsw';i++) printf ("%s\n", i) }'` ) ## work to be done... (2 Replies)
Discussion started by: jiam912
2 Replies
shl(1)							      General Commands Manual							    shl(1)

NAME
shl - shell layer manager SYNOPSIS
DESCRIPTION
provides a means for interacting with more than one shell from a single terminal by using shell layers. A layer is a shell that is bound to a virtual device. The virtual device can be manipulated like an actual terminal by using and (see stty(1) and ioctl(2)). Each layer has its own process group ID. The user controls these layers by using the commands described below. The current layer is the layer that can receive input from the keyboard. Other layers attempting to read from the keyboard are blocked. Output from multiple layers is multiplexed onto the terminal. To block the output of a layer when it is not current, the option can be set within the layer. The character (set to if NUL) is used to switch control to from a layer. has its own prompt, to distinguish it from a layer. Definitions A is a sequence of characters delimited by a space, tab, or new-line character. Only the first eight characters are significant. When provided as an argument to the or commands, name cannot be of the form n or where n is a decimal number. Commands The following commands can be issued from the prompt level. Any unique prefix is accepted. Create a layer called name and make it the current layer. If no argument is given, a layer is created with a name of the form where n is the num- ber of the next available slot in an internal table. Future references to this layer can be made with or without the paren- theses. If name is followed by a command, that command is executed in the layer instead of a shell. If is the first argu- ment, a ``login shell'' is created in the layer. The shell prompt variable is set to the name of the layer followed by a space. Rename the layer oldname, calling it newname. If oldname is not specified, the current layer name is changed. Invoke a sub-shell and execute command. If no command is given, a shell is executed according to the environment variable. For each name, block the output of the corresponding layer when it is not the current layer. This is equivalent to setting the option within the layer. For each name, delete the corresponding layer. All processes in the process group of the layer are sent the signal (see signal(5)). Print the syntax of the commands. For each name, list the layer name and its process group. The option produces a ps(1)-like listing. If no arguments are given, information is presented for all existing layers. Change the status of the layer referred to by name to that of current layer. If no argument is given, the last existing current layer is changed. Change the status of the previous current layer to that of current layer. For each name, do not block the output of the corresponding layer when it is not the current layer. This is equivalent to setting the option within the layer. Exit All layers are sent the signal. name Change the status of the layer referred to by name to that of current layer. Any unique prefix is accepted. WARNINGS
Commands The behavior of the and commands is not guaranteed when the SHELL environment variable is set to (for csh(1)) or (for ksh(1)), or when the shell saves and restores the tty state (defined in termio(7)) before and after each command is invoked interactively from that shell. For both and the or options of can be used from within the layer to block or unblock the output of that layer. Ptydaemon For to function properly, the process must be running on the system. If your system has been installed with the Desktop HP-UX product, then will not be started by default. In order to start this daemon, change from a "0" to a "1" in the file. The system must either be rebooted for this change to take effect, or you can manually start this daemon by typing : Note that will also be disabled if the DesktopConfig.LITECONFIG fileset has been installed on the system, or if the system administrator has previously run the utility and selected the from within any of screens. does not support long user and group names on the current release, HP-UX 11i V3. FILES
Variable containing path name of the shell to use (default is SEE ALSO
sh(1), stty(1), ioctl(2), signal(5). STANDARDS CONFORMANCE
shl(1)
All times are GMT -4. The time now is 06:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy