From mboxrd@z Thu Jan 1 00:00:00 1970 From: "erik quanstrom" To: 9fans@cse.psu.edu, "Ronald G Minnich" References: <436AF189.2080909@lanl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <436AF189.2080909@lanl.gov> Subject: Re: [9fans] tab completion and command history in rc Message-Id: <20051104145056.A3EC1651A4@dexter-peak.quanstro.net> Date: Fri, 4 Nov 2005 09:06:30 -0600 Cc: Topicbox-Message-UUID: a53c944c-ead0-11e9-9d60-3106f5b1d025 Ronald G Minnich writes | [...] On Plan 9, I still miss command | history that spans instances of the shell. Sorry, that's not "Plan 9 | PC", but it's my preference. global /persisitant/ history is a "must have" for me. it was the reason i utf-8ized byron's (unmaintained?) shell. productivity will suffer just a little bit if you have to retype something as a last resort. but trying to figure out that ip address you ssh'd to last week/month/year could waste 10 minutes. grepping persistant history is a big win for me. (if you want global but non-persistant history on p9p changing the " command to look at all your open windows wouldn't be too hard but you would have an ordering problem; it would difficult to order the commands correctly.) i looked at modifying rc to write commands to a history file but it didn't seem to fit very well. maybe a hook would be better as in fn post-cmd { echo $* >> $history } paul haahr's shell es went all the way and made the whole interactive loop a function. erik