summaryrefslogtreecommitdiff
path: root/dot
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-10-13 17:14:49 -0400
committerAndrew Cady <d@jerkface.net>2019-10-13 17:14:49 -0400
commit8df42508ca8daaf798e118898d188103039b388f (patch)
tree3ccbb31704b0df78679cd38b4edf56e5fb90de98 /dot
parent13af0dcfd3223c921c674defe1bbbcda3551cba9 (diff)
new bash function: newfile()
Diffstat (limited to 'dot')
-rw-r--r--dot/bashrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/dot/bashrc b/dot/bashrc
index 1c2a83c..e4d81b2 100644
--- a/dot/bashrc
+++ b/dot/bashrc
@@ -398,3 +398,8 @@ fkill()
398 398
399alias fstop='fkill -STOP' 399alias fstop='fkill -STOP'
400alias fcont='fkill -CONT' 400alias fcont='fkill -CONT'
401
402newfile()
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}