From owner-freebsd-questions@FreeBSD.ORG Sat Apr 19 06:35:17 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05CBD37B401 for ; Sat, 19 Apr 2003 06:35:17 -0700 (PDT) Received: from users.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD3B443FCB for ; Sat, 19 Apr 2003 06:35:15 -0700 (PDT) (envelope-from munk@users.munk.nu) Received: from users.munk.nu (munk@localhost [127.0.0.1]) by users.munk.nu (8.12.9/8.12.9) with ESMTP id h3JDaDjQ015310 for ; Sat, 19 Apr 2003 14:36:13 +0100 (BST) (envelope-from munk@users.munk.nu) Received: (from munk@localhost) by users.munk.nu (8.12.9/8.12.8/Submit) id h3JDaDfm015309 for questions@freebsd.org; Sat, 19 Apr 2003 14:36:13 +0100 (BST) Date: Sat, 19 Apr 2003 14:36:13 +0100 From: Jez Hancock To: questions@freebsd.org Message-ID: <20030419133613.GB14756@users.munk.nu> Mail-Followup-To: questions@freebsd.org References: <20030418164448.L28578@wonkity.com> <20030419002118.GA77630@users.munk.nu> <20030418183314.V226@wonkity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030418183314.V226@wonkity.com> User-Agent: Mutt/1.4.1i Subject: Re: Console key repeat rate zapped by X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2003 13:35:17 -0000 On Fri, Apr 18, 2003 at 06:34:05PM -0600, Warren Block wrote: > On Sat, 19 Apr 2003, Jez Hancock wrote: > > > I have a simple shell script setup called 'kbdrate' I put in a file > > /usr/local/bin/kbdrate that's easy enough to execute: > > > > kbdcontrol -r 250.34 > > I have an alias called "fast" that does the same thing. But after the > dozenth time in a day... How about using the excellent 'precmd' alias (depends on you using csh as your shell though). In your .cshrc file put: alias precmd "your fast command here" Don't know if you've come across precmd before, it executes a command immediately after control is returned to the shell when you execute anything in a csh login shell. I have precmd setup like: alias prcmd "echo && w -n && echo" so it displays a list of logged in users after each command I run in a shell. Pretty handy. Hope that helps, Jez