zsh-users
 help / color / mirror / code / Atom feed
From: <agkozak@gmail.com>
To: <zsh-users@zsh.org>
Subject: FW: Setting GLOB_DOTS for a single command
Date: Sat, 20 Nov 2021 21:11:16 -0800	[thread overview]
Message-ID: <002e01d7de96$36ee8160$a4cb8420$@gmail.com> (raw)
In-Reply-To: <CAMP9c5mXzK=HHqZjwJdRSraf_LF3vLp0chMjpD-VnaurZ3z2Wg@mail.gmail.com>

Zach Riggle wrote:
> I recently learned about GLOB_DOTS, which is pretty useful in some scenarios, e.g.
> 
> echo *(md-1)
> 
> To show all files modified within the last day.  However, in some cases I want to see hidden files (e.g. ./.foo) as well.  The globdots option is excellent for > this!

> Is there an easy way to set this for a single expression?

Have you tried

    echo *(Dmd-1)

? I think that may be what you're looking for.

Alex




  reply	other threads:[~2021-11-21  5:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-21  4:46 Zach Riggle
2021-11-21  5:11 ` agkozak [this message]
2021-11-21  5:20   ` FW: " Bart Schaefer
2021-11-21  5:28 ` Lawrence Velázquez
2021-11-24  2:20   ` Zach Riggle
2021-11-21  5:36 ` Bart Schaefer
2021-11-21  5:38   ` Bart Schaefer

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='002e01d7de96$36ee8160$a4cb8420$@gmail.com' \
    --to=agkozak@gmail.com \
    --cc=zsh-users@zsh.org \
    --subject='Re: FW: Setting GLOB_DOTS for a single command' \
    /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

Code repositories for project(s) associated with this 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).