zsh-users
 help / color / mirror / code / Atom feed
From: Gürkan <seqizz@gmail.com>
To: zsh-users@zsh.org
Subject: Converting relative paths to full
Date: Tue, 10 Aug 2021 21:53:14 +0200	[thread overview]
Message-ID: <CAG3b68EvH4eehWYEi5_PgwQF+LG1=tXObYbzOgUv==6Xx77sSQ@mail.gmail.com> (raw)

Hello,

I'm trying to create a function to catch relative paths of
files/directories and converting those to full paths before sending
into history. Will hook it to "zshaddhistory", similar to this [0].

Looks like it's going to be a bit painful. Are there any pre-existing
function/variable or any example / shortcut you could point?

Thanks for your time,
Gürkan

[0]: https://github.com/phyber/zsh.d/blob/a595029597189c99bfb053383f4273d4a74e1688/hooks/zshaddhistory.zsh


             reply	other threads:[~2021-08-10 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10 19:53 Gürkan [this message]
2021-08-10 20:44 ` Bart Schaefer
2021-08-10 21:39   ` Gürkan
2021-08-10 21:53     ` Gürkan
2021-08-10 22:36       ` Bart Schaefer
2021-08-11  6:24         ` Gürkan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG3b68EvH4eehWYEi5_PgwQF+LG1=tXObYbzOgUv==6Xx77sSQ@mail.gmail.com' \
    --to=seqizz@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).