Real-time command history sharing between interactive shells
Chuck Swiger
cswiger at mac.com
Wed Nov 29 14:08:14 PST 2006
On Nov 29, 2006, at 1:51 PM, Andrew Pantyukhin wrote:
>> zsh is a pretty good interactive shell (it finally weaned me off
>> tcsh),
>> as well as supporting a full range of redirection and control
>> constructs. You should look at that, in particular the
>> set -o sharehistory
>> option (which does half of what you're after).
>>
>> Combine this with a shared .history file and you should get the
>> effect
>> you're after.
>
> I think, I'll follow your advice. It's high time I forgot about
> csh, but I wonder if you tried to change root's shell to zsh?
ZSH is a remarkably good choice for a shell. It's as compatible with
standard Bourne shell scripts as Bash is, only it also supports some
nice options to help people familiar with CSH make the transition
(ie, providing mechanisms to convert "setenv" to "export" and so forth).
It works fine as root's shell, although I would encourage you to make
sure that your toor account still works with /bin/sh, especially if /
usr/local is on a different filesystem.
--
-Chuck
More information about the freebsd-questions
mailing list