From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15210 invoked by alias); 11 Aug 2011 21:32:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29675 Received: (qmail 24807 invoked from network); 11 Aug 2011 21:32:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at informatik.uni-leipzig.de does not designate permitted sender hosts) Date: Thu, 11 Aug 2011 23:11:50 +0200 From: Sebastian Tramp To: zsh-workers@zsh.org Subject: starting completion / command history Message-ID: <20110811211150.GA21221@soljaris7.fritz.box> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: University of Leipzig X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE8093B579D601B44 X-FOAF: http://sebastian.tramp.name User-Agent: Mutt/1.5.21 (2010-09-15) Hi zsh workers, Is there a way to map a at the beginning of a command line to a completion function? I want to use it to complete full command lines which I save as a history for each directory so that I can re-use commonly executed commands (incl. parameters) for a specific directory. The idea is a little bit similar to the autojump command [1] which I really love and imo such a tool does not exist yet (please point me to such a project if you know something like that). Best regards Sebastian Tramp 1. https://github.com/joelthelion/autojump -- Sebastian Tramp - Department of Computer Science; University of Leipzig WebID: http://sebastian.tramp.name Tel. (Fax): +49 341 97 323-66 (-29)