diff options
author | Andrew Cady <d@jerkface.net> | 2019-10-13 17:14:49 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-10-13 17:14:49 -0400 |
commit | 8df42508ca8daaf798e118898d188103039b388f (patch) | |
tree | 3ccbb31704b0df78679cd38b4edf56e5fb90de98 /dot/bashrc | |
parent | 13af0dcfd3223c921c674defe1bbbcda3551cba9 (diff) |
new bash function: newfile()
Diffstat (limited to 'dot/bashrc')
-rw-r--r-- | dot/bashrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -398,3 +398,8 @@ fkill() | |||
398 | 398 | ||
399 | alias fstop='fkill -STOP' | 399 | alias fstop='fkill -STOP' |
400 | alias fcont='fkill -CONT' | 400 | alias fcont='fkill -CONT' |
401 | |||
402 | newfile() | ||
403 | { | ||
404 | find . -maxdepth 1 -type f -printf "%T@ %f\0" | sort -z -k1,1 -r | head -z -n1 | cut -d' ' -f2 | xargs -0 printf %s | ||
405 | } | ||