Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.sources.d Subject: Re: idea for tcsh Message-ID: <6797@brl-smoke.ARPA> Date: Sat, 5-Dec-87 10:26:23 EST Article-I.D.: brl-smok.6797 Posted: Sat Dec 5 10:26:23 1987 Date-Received: Thu, 10-Dec-87 06:02:51 EST References: <147@csvaxa.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 17 In article <147@csvaxa.UUCP> edward@csvaxa.UUCP (Edward Wilkinson) writes: >I'm really impressed with the latest version of tcsh, with spelling >checking, emacs-style editing, etc. However, I've often wanted to save >my directory stack between sessions, as currently done with the >history list. Has anyone made any hacks to allow this? I haven't been keeping track of tcsh, but unless it's really bogus you shouldn't have any trouble doing what you ask in user mode, without having to hack on the shell itself. The way I would do this would be to make my .logout file create a "dot file" in my home directory containing the directory stack (which at least in my Bourne shell environment is just the value of an environment variable kept up to date by "cd", "pushd", etc.). Then my .profile (or perhaps my .shrc per-shell startup file) would, if this dot file were present, use it to initialize the environment variable. I leave the details as an exercise for the poor tcsh user.