From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18594 invoked by alias); 25 Jun 2016 17:46:33 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21707 Received: (qmail 667 invoked from network); 25 Jun 2016 17:46:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=p0UOKoxItSyLP6mS37qjX6B3rlvOs/KQaLQa5xMMYE4=; b=JhisJ+RGd3g3OFP/aN4HTXGWiehNTpnFcfi8T/rUaacYbISxkQW4qVLzl00BCFYRNf Mjtoy5cuXzMv4d0dywD0ZYx3hlIDmcMTAa2JMJBclTvMi7QURmBY2VONiBoPqyuCZlyk u3tnaKV3gpC2MBrWWi/t77UT+yP7UqDYVtCrQpE4pYWfNoe1IYfu2IOtoi4jWkybDUSo PenmYt2Gex0iX4a+P3KLMLLwmUPqdM01NY94m8GC1nycmGqpAD4PbG9zqVALYp4QgQK8 GIXpdls6XQ4l6gXgNZTuHm/lH03wL/MMW4NPXEUbXeeW4Wfuy81QGfE2FdHZtDIpbvZB 0xbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=p0UOKoxItSyLP6mS37qjX6B3rlvOs/KQaLQa5xMMYE4=; b=LpIPuaGrZJWC1t+HNBW52xzYJg7zfhwLrRlXKAFIrL1Q5v1KA05/QKg1EWzd3jclr9 dJmoweZizRQeeLRiRywu0R3jQ+VHpJYW6P5bNsYt45RJnT9eSNoz/J5h3PPYCR+I8FOU rBjoRhNbvWyEqfoZv1moIbeTOKvCkrddOxgei7t5XKiF5uEwTqRkl+bvHHJIGK2BQnCb 6K6LNEv7guP1UfjVnMqa5hu6H9v1UslmLVmxR02XIDlzb6EOFeqT1pukjuJGd7yVhpeD BESJj4VLLQFx04SnYJmD0FS5JjmdGzu/QkRXK9V632qY/DsTSHslE6md0F2EvewtpXcI 26kQ== X-Gm-Message-State: ALyK8tKTRVlWuYry9JEV95jwYq3oC5ecRPWc+/GQu045Ar6/QFofhJkx2VNQ8n7c7lwx2Ro7aTH4smhK6ddTSw== MIME-Version: 1.0 X-Received: by 10.25.134.194 with SMTP id i185mr2468254lfd.116.1466876789152; Sat, 25 Jun 2016 10:46:29 -0700 (PDT) In-Reply-To: <6323851466876031@web5m.yandex.ru> References: <20160624134706.GA22704@linux.vnet.ibm.com> <6323851466876031@web5m.yandex.ru> Date: Sat, 25 Jun 2016 10:46:29 -0700 Message-ID: Subject: Re: Memory usage of history? From: Bart Schaefer To: ZyX Cc: Robin Dapp , Zsh Users Content-Type: multipart/alternative; boundary=001a113fbc4cf2783d05361dddb5 --001a113fbc4cf2783d05361dddb5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Jun 25, 2016 10:33 AM, "Nikolay Aleksandrovich Pavlov (ZyX)" < kp-pav@yandex.ru> wrote: > I have no idea how one may construct =E2=80=9Czshaddhistory function=E2= =80=9D that =E2=80=9Cfilters out commands that are unlikely to be used again=E2=80=9D w= ithout somehow know what these stats will be in the future. As an example, if any command I type contains an argument "foo" "bar" or "baz" it is probably a throwaway. There must be other similar criteria, e.g., why ever save "cd .."? --001a113fbc4cf2783d05361dddb5--