![]() |
News | Profile | Code | Photography | Looking Glass | Projects | System Statistics | Uncategorized |
Blog |
From the "tiny blogs" department...
Yep, I'm a Zsh fan. I've always been one and probably won't change.
One of the nifty features of Zsh is the ability to expand wildcards on the command-line in a particular order. For me, this often comes in handy when combined with some sort of media player. For example, what if I wanted to watch videos in a directory with MPlayer and start with the most recently modified ones? Zsh has that covered:
% mplayer *.mp4(oa)
The (oa) tells Zsh to expand '*' to all files in $CWD but to order the expansion by last modified. There are a few other sort specifiers, but I find 'a' the most useful. Using a capital 'O' will reverse the sort order.
New comments are currently disabled for this entry.
![]() ![]() ![]() ![]() ![]() |
This HTML for this page was generated in 0.000 seconds. |