Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: save a command in history from within the widget
- X-seq: zsh-users 26131
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: save a command in history from within the widget
- Date: Mon, 26 Oct 2020 08:11:48 +0100
- Archived-at: <https://zsh.org/users/26131>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-10/CAN%3D4vMryHfqkTpf%2B82hERCWac2yu%3D8pnj8UJP60kEb9GP9VDOg%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-io1-f52.google.com) smtp.remote-ip=209.85.166.52; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Cc: Ahmad Ismail <ismail783@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fpzq22ZMkf0nkdHpFM6latQW7LCTPX8MZOoreIlkMF8=; b=Zqzq3MjQJhuLZ2q/IBjoAURW8icd+ntGJnjkVCm1DOG8QGI8xvrrVMBmjMMUCqSVUM eoT7BEsgohB0krmcCfd4mLA3fX1uVtnl7qgJlEVyHo1l6iizMxE8ry2ASMgEaar/7XQv 7Dw3Cv/DIyHY7z75i5/A499MYh7flUJwiPUPBc/u7LmYrtiq5bO7VgdvdnxZF+8xgbnU PhFCHlxdLgzonR/Tef0E9GhGYt8Cv096+VFXyj2+CVYwBtei2dhi7IbOrElo3xP0VYn8 sQnqlfowYtpYQ7yLZ85SUCQehqm7yWuJhpYx2NW+6l+GjYl85hZwCnuSvSUWpsjh+uSd SgdA==
- In-reply-to: <20201025202419.528548e8@tarpaulin.shahaf.local2>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <CAHAhJw+EVFVoXT7Wp_dTMwVy4__Za+umR3cgmmY1Crr5y5+6Qg@mail.gmail.com> <20201025202419.528548e8@tarpaulin.shahaf.local2>
- Sender: zsh-users-request@xxxxxxx
On Sun, Oct 25, 2020 at 9:24 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> I don't understand why you can't drop a script literally called «g»
> into a directory in $path and implement in it whatever logic you want.
> (Or possibly a function, depending on your use-case.)
I highly recommend following this advice. Write a script or a function
called "g" and remove the custom accept-line widget.
> But, this script is only for my personal use, so I will continue
> tweaking it as per my requirement.
The value of the advice is not diminished by "g" being for your personal use.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author