4 Posts Tagged ‘zsh’

(All tags.)


Zsh: select files with arbitrary code in (e) or + glob qualifiers

Zsh glob qualifiers can select files by many built-in attributes: type, size, modification time, and more. But when no built-in qualifier fits, you can bring in the e or + qualifiers to run arbitrary code, making globs a fully programmable file filter. With great power comes great responsibility!

Read more...

Zsh: list recently modified files with (m0) glob qualifiers

My downloads directory is a junk pile that I just never get around to fully clearing. So if I’ve just downloaded a bunch of files, I normally want to work with them and ignore the rest of the files.

Read more...

Zsh: select generated files with (om[1]) glob qualifiers

I’ve recently been using memray, a memory profiler for Python, to optimize the startup memory usage (and time) for a client. It’s a fantastic tool, but its flexibility hampers getting instant feedback. It takes three commands to profile a program, generate a flame graph from the profile, and open the flame graph in the browser:

Read more...

Zsh: clear the “You have mail“ message

Do you see this message when you open a new terminal session?

Read more...