zsh-users
 help / color / mirror / code / Atom feed
From: Timothee Cour <timothee.cour2@gmail.com>
To: zsh-users@zsh.org
Subject: `whence -v X` shows file for functions, but not alias; workaround?
Date: Thu, 12 Jan 2017 09:24:32 -0800	[thread overview]
Message-ID: <CAM4j=kNi2MHm=hDDpKQ7vG8wAqR8dbpiOY1PhSetB=s2jRyJsw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

* how do i search for where an alias is defined?
`whence -v my_function`: works
my_function is a shell function from /home/timothee/.zshrc

`whence -v my_alias`: doesn't do that:
my_alias is an alias for ...
Could that be implemented? What's a workaround? (besides grep of course)

* why not also include line info?

             reply	other threads:[~2017-01-12 19:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-12 17:24 Timothee Cour [this message]
2017-01-13  4:21 ` Eric Cook
2017-01-13  7:04   ` Bart Schaefer
2017-01-13 18:18     ` Ray Andrews

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='CAM4j=kNi2MHm=hDDpKQ7vG8wAqR8dbpiOY1PhSetB=s2jRyJsw@mail.gmail.com' \
    --to=timothee.cour2@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).