dotfiles/.config/shell/zshrc.d/6-newest-files.zsh

11 lines
273 B
Bash
Raw Normal View History

2019-07-24 05:33:28 +00:00
#!/bin/zsh
2019-02-04 02:32:45 +00:00
# show newest files
# http://www.commandlinefu.com/commands/view/9015/find-the-most-recently-changed-files-recursively
newest (){
find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | \
grep -v cache | \
grep -v '.hg' | grep -v '.git' | \
sort -r | \
less
}