Zsh Mailing List Archive
Messages sorted by:
Re: One $HISTFILE to rule them all
- X-seq: zsh-users 13893
- From: TjL <luomat@xxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: One $HISTFILE to rule them all
- Date: Mon, 9 Mar 2009 12:54:10 -0400
- Cc: Zsh Users List <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VBqB2Vak2wjbnLRbag3vvzN9NkMPoJqTJ+CtEq9m4cg=; b=wACzcY/ahkhL0nhCDkD4zarVWZu66a0bMQN0BidGde5wYkt5uuDBt3QCcHlAgUg+n3 QgE42ZLCiXKWXCEeMTypzX5Zksj3p7PCN8QV+FD0vgbivUESkqrr/1PwRuBxT+pP7u5n yIaAMs6yNK+CQTqfun6SGR4U4R1zcs0nv87KM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Soegwt83Y4wbhijAMXqyL7nlF0GkiyyXMx/52yKqu25+dpBhZOpbYxbrrMw3sxSPTG BGCBklJAjf/LYgD4X63iB+mgOub3hNcXFWTGb2FBR6KczTAMFxML2XkmSB6QnLwTChYw 1iyG8rWZUZ20nKPMQlS9/DlCVrrdSXfHt4hIQ=
- In-reply-to: <20090309161147.2cd4d735@news01>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d2ecb10b0903090705l37d2c749ufc7a9f73fe1194ec@xxxxxxxxxxxxxx> <20090309161147.2cd4d735@news01>
On Mon, Mar 9, 2009 at 12:11 PM, Peter Stephenson <pws@xxxxxxx> wrote:
> On Mon, 9 Mar 2009 10:05:40 -0400
> TjL <luomat@xxxxxxxxx> wrote:
>> and you'll get 2.25GB instead of 2.0GB (and I get some extra space too)
> I've just done that. It's lucky I found
> http://wiki.getdropbox.com/TipsAndTricks/TextBasedLinuxInstall or it would
> have been just another form of uploadable remote storage...
Oh, cool. I wonder if I can use that to make it sync with my shell
account at Dreamhost. That would be truly excellent.
>> Is there a way for me to change my $HISTFILE to something like
>> ~/Dropbox/Zsh/History.txt and have zsh save the history from any shell
>> on any computer to the same file?
>> I wasn't sure how $HISTFILE would react to being written to from
>> several different places.
> It should "just work" as long as you leave a dropbox-sized gap (which
> appears to be of the order of a minute or so) between doing anything on a
> system with one copy and a system with another copy, so that they stay
> synced without confusion over who's written what---there's no way of doing
> file locking since you're always at the mercy of that time lag whatever you
> write; you just can't tell what files are currently visible on another
> synced system. This is pretty obvious and applies to all files down there.
> Other than that, I can't offhand see any new issues compared with other
> forms of syncing history between multiple computers, which many of us have
> been doing for a long time.
The good news is that I've seen Dropbox deal with multiple-writes
before, and it handles it pretty well. You end up with a file
"Filename.(hostname).ext" or something like that, which shows you
which machine it was from.
(Oh, also forgot to mention Dropbox ***SAVES REVISIONS*** of changes
that you make. i.e. "I don't have to learn git/subversion to get
version tracking" -- at least sufficient enough for my
> By the way, leaking information from another thread entirely on zsh-workers
> (starts zsh-workers/26702):
> Bart wrote:
>> } Obviously any alternative opinions would be useful. Currently that
>> } means Bart, but both of us would be very interested in getting new
>> } apprentice source code gurus...
>> Leak some of that sentiment onto zsh-users. Maybe potential apprentices
>> just aren't reading -workers.
I wish I could help, but other than some (often crude) shell
scripting, I don't have any programming experience to offer.
Messages sorted by: