From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id QAA06209 for ; Wed, 6 Nov 1996 16:02:16 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id AAA07768; Wed, 6 Nov 1996 00:00:23 -0500 (EST) Resent-Date: Tue, 5 Nov 1996 23:49:13 -0500 (EST) From: Alexey Solovyov Message-Id: <199611060449.UAA14674@charity.ucr.edu> Subject: Re: Contrl-Z action. To: gwing@primenet.com.au (Geoff Wing) Date: Tue, 5 Nov 1996 20:49:20 -0800 (PST) Cc: alekso@math.ucr.edu, zsh-users@math.gatech.edu In-Reply-To: <199611060258.NAA00455@coral.primenet.com.au> from "Geoff Wing" at Nov 6, 96 01:58:25 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Resent-Message-ID: <"o-3NL3.0.Op1.9Z1Wo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/495 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > :But I've got a question. Once I came up why I want to have my job > :suspended by pressing Cntrl-Z ? Ok, I want it to run in background > :right after that. In another words how to (where) redefine action of > :Ctrl-Z? Any comments why nobody should change it are also very > :welcome. > > I can't think of a elegant way of doing this automatically without a lot of > overhead. What you could do is > > % bindkey -s "^Z" "bg^M" > > then when you suspend something, press CTRL-Z again and it will put it in the > background. Thanks, I will probably do it this way though actually I was thinking about changing the sources... :) But anyway suggestions about eliminating the second Ctrl-Z are welcome. ---------------------------------------------------------------------- Alexey A. Solovyov