csh prompt

csh prompt

Post by ha.. » Sun, 06 Apr 1997 04:00:00



I haven't found a satisfactory way to have the cursor appear on the line below
the first part of my prompt such as:

/dir1/dir2/dir3/dir4/dir4/...

Does anyone have a way that works reliably?  I'm including the prompt I'm using
currently (which could be part of the problem):

set cwd1 = $cwd:h
set cwd2 = $cwd1:t
set prompt="[%B%m%b]:%B ../${cwd:t} %b%B%b%U%#%u "

Thanks...

---------------------------
Mike Hardy
AlphaServer Development Group
Digital Equipment Corporation
Maynard, MA  01754


----------------------------

 
 
 

csh prompt

Post by Christos Zoul » Sun, 06 Apr 1997 04:00:00



>I haven't found a satisfactory way to have the cursor appear on the line below
>the first part of my prompt such as:

>/dir1/dir2/dir3/dir4/dir4/...

>Does anyone have a way that works reliably?  I'm including the prompt I'm using
>currently (which could be part of the problem):

>set cwd1 = $cwd:h
>set cwd2 = $cwd1:t
>set prompt="[%B%m%b]:%B ../${cwd:t} %b%B%b%U%#%u "

set ellipsis
set prompt="[%B%m%b]:%B %c04 %b\n%U%#%u "

christos

 
 
 

csh prompt

Post by ha.. » Mon, 07 Apr 1997 05:00:00


Quote:>>I haven't found a satisfactory way to have the cursor appear on the line below
>set ellipsis
>set prompt="[%B%m%b]:%B %c04 %b\n%U%#%u "

>christos

Thank you very much!  It works perfectly...

---------------------------
Mike Hardy
AlphaServer Development Group
Digital Equipment Corporation
Maynard, MA  01754


----------------------------

 
 
 

1. csh prompt (csh newbie)

Hi,
i want to have this format for my prompt :


so  i put the following in my .cshrc:

        it($?prompt)

and mch is my hostname ( it is an environment varialbe ?? ). After logging
in i get this message:

        Unknown variable modifier
        #

Can anybody tell me what I'm doing wrong ?
Thanks in advance

Iqbal

2. SCO3.2V4.2 and "smallest" printer

3. Csh prompt customisation

4. Eggdrop v1.3.27... any good tutorials on the web?

5. Bourne (or csh) prompt that shows path ala DOS

6. DEC Alpha Boot?

7. Current Dir in CSH Prompt?

8. FTP to home directory for newbie

9. PWD in csh prompt

10. Reverse-video csh prompt on SunOS xterm?

11. csh prompts on exit

12. env. var. in csh prompt?

13. Help with csh prompt to show current directory?