News for hackers. Stuff that matters.
Re:ZSH Aliases by roylez on Tuesday May 26, 2020 @04:20PM (#23315934)
My personal favourite

alias -g NF='./*(oc[1])'

This points to the newest file/dir in my current dir, and it is very easy for me to untar a downloaded file and then cd into it without caring about the name of the file/dir.

tar xf NF; cd NF

Re:ZSH Aliases by drewp on Friday May 29, 2020 @10:57PM (#23358082)
'C-x m' pulls the newest file for me:

mv ~/Downloads/[C-x m] /tmp

or even within files that match what I've typed already:

tail /logs/pho[C-x m]