List Info

Thread: Real-time command history sharing between interactive shells




Real-time command history sharing between interactive shells
user name
2006-11-29 14:03:41
I want to be able to define groups of interactive
shells (preferably even across different users)
so they have one single shared command history.
Any command executed in one of them should be
available through all history mechanisms in the
other ones.

I imagine some ways to do it in tcsh. I'm sure
many users would like this kind of functionality,
maybe some of them have already implemented it?

Thanks!
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Real-time command history sharing between interactive shells
user name
2006-11-29 16:16:44
On 11/29/06, Andrew Pantyukhin <infofarmerfreebsd.org> wrote:
> I want to be able to define groups of interactive
> shells (preferably even across different users)
> so they have one single shared command history.
> Any command executed in one of them should be
> available through all history mechanisms in the
> other ones.
>
> I imagine some ways to do it in tcsh. I'm sure
> many users would like this kind of functionality,
> maybe some of them have already implemented it?
>

sounds pretty interesting.  maybe i'm missing something
pretty basic
here, so i assume sym-linking ~/.history between multiple
accounts
will not be sufficient.  if it is you can define $HISTFILE
in bash/ksh
to point to ~/.history as well.

-pete





-- 
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Real-time command history sharing between interactive shells
user name
2006-11-29 21:33:20
On Wed, 29 Nov 2006, Andrew Pantyukhin wrote:

> I want to be able to define groups of interactive
> shells (preferably even across different users)
> so they have one single shared command history.
> Any command executed in one of them should be
> available through all history mechanisms in the
> other ones.
> 
> I imagine some ways to do it in tcsh. I'm sure
> many users would like this kind of functionality,
> maybe some of them have already implemented it?

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.

-- 
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
Whenever I see a dog salivate I get an insatiable urge to
ring a bell.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Real-time command history sharing between interactive shells
user name
2006-11-29 21:51:09
On 11/30/06, Jan Grant <jan.grantbristol.ac.uk> wrote:
> On Wed, 29 Nov 2006, Andrew Pantyukhin wrote:
>
> > I want to be able to define groups of interactive
> > shells (preferably even across different users)
> > so they have one single shared command history.
> > Any command executed in one of them should be
> > available through all history mechanisms in the
> > other ones.
> >
> > I imagine some ways to do it in tcsh. I'm sure
> > many users would like this kind of functionality,
> > maybe some of them have already implemented it?
>
> 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?
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Real-time command history sharing between interactive shells
user name
2006-11-29 22:08:01
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

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Real-time command history sharing between interactive shells
user name
2006-11-29 22:24:27
On Thu, 30 Nov 2006, Andrew Pantyukhin wrote:

> 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?

You can; I haven't. ("exec zsh" is simple to
type.) sudo works well for 
single commands. I don't tend to spend much time as root,
but that's a 
question of personal taste.

Cheers,
jan

-- 
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
Spreadsheet through network. Oh yeah.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Real-time command history sharing between interactive shells
user name
2006-11-29 22:29:36
On 11/30/06, Jan Grant <jan.grantbristol.ac.uk> wrote:
> On Thu, 30 Nov 2006, Andrew Pantyukhin wrote:
> > 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?
>
> You can; I haven't. ("exec zsh" is simple to
type.) sudo works well for
> single commands. I don't tend to spend much time as
root, but that's a
> question of personal taste.

Thanks again, I'll plow through zsh manuals.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )