Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to configure my prompt in tcsh to make it multi-line (i.e having one line provide system info, and the next line the one where I type commands).

Currently I have the following:

set prompt="(remote) ${green}%n ${green}@ %m ${cyan}%~ ${white} ${end}"

I managed to make it multi-line by adding %{\n>%} at the end of it and other similar variations, but this messes my bindkeys

set prompt="(conda) ${green}%n ${green}@ %m ${cyan}%~ ${white} %{\n>%} ${end}"

Any thoughts on how to do this properly?

For reference, in case it matters, my bindkeys are:

bindkey "^n" history-search-forward
bindkey "^p" history-search-backward
bindkey "^r" i-search-back
bindkey "^s" i-search-fwd
share|improve this question
1  
Maybe like explained here? –  illuminÉ Feb 4 at 18:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.