zsh-users
 help / color / mirror / code / Atom feed
* zsh question
@ 1997-06-08  7:35 Brian Harvell
  1997-06-08 11:51 ` Zefram
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Harvell @ 1997-06-08  7:35 UTC (permalink / raw)
  To: zsh-users


I have just finished reading the zsh man pages or at least Doc/*.1 ones, and
I didn't see anything about this.

I've tested both bindkey vi insert mode and command mode and neither seems
to emulate tcsh

I want to be able to run a command and then just hit "up" or control p and 
have that command pop back up without having to hit escape first. Is there
an easy way to do this.

Next I don't like the way the complete prints the choices below the prompt
is there a way to make it above the prompt

Thanks
Brian



Brian Harvell         harvell@aol.net         http://boondoggle.web.aol.com/
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh question
  1997-06-08  7:35 zsh question Brian Harvell
@ 1997-06-08 11:51 ` Zefram
  0 siblings, 0 replies; 3+ messages in thread
From: Zefram @ 1997-06-08 11:51 UTC (permalink / raw)
  To: Brian Harvell; +Cc: zsh-users

Brian Harvell wrote:
>I've tested both bindkey vi insert mode and command mode and neither seems
>to emulate tcsh
>
>I want to be able to run a command and then just hit "up" or control p and 
>have that command pop back up without having to hit escape first. Is there
>an easy way to do this.

bindkey '^P' up-line-or-history

etc.

>Next I don't like the way the complete prints the choices below the prompt
>is there a way to make it above the prompt

unsetopt always_last_prompt

-zefram


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Zsh question
       [not found] <Pine.GSO.3.96.980325155059.26447D-100000@flivoreuse>
@ 1998-03-25 17:27 ` Andrew Main
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Main @ 1998-03-25 17:27 UTC (permalink / raw)
  To: fysh

(Bcced to zsh-users because of possible interest there.  zsh-users
readers, make sure you don't accidentally reply to fysh@fysh.org.)

Giles Constant wrote:
>[pts/2] :)                                              ~/doc [flivoreuse]
>
>Benbar came up with the amusing idea of making the smiley prompt change
>randomly every time I hit return (or even change to something that
>reflects the load of the machine).

Cool idea.

PS1='[%l] %1v '
function precmd {
  setopt no_ksh_arrays local_options
  case "${${$(uptime)##*"load average: "}%%,*}" in
    0.[0-4]*) psvar[1]=':-)' ;;
    0.[5-9]*) psvar[1]=':-}' ;;
    1.*)      psvar[1]=':-]' ;;
    2.*)      psvar[1]=':-|' ;;
    3.*)      psvar[1]=':-[' ;;
    [45].*)   psvar[1]=':-{' ;;
    [67].*)   psvar[1]=':-(' ;;
    *)        psvar[1]='|-O' ;;
  esac
}

-zefram


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-03-25 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-08  7:35 zsh question Brian Harvell
1997-06-08 11:51 ` Zefram
     [not found] <Pine.GSO.3.96.980325155059.26447D-100000@flivoreuse>
1998-03-25 17:27 ` Zsh question Andrew Main

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).