aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/find
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/.cheat/find')
-rw-r--r--cheat/.cheat/find4
1 files changed, 2 insertions, 2 deletions
diff --git a/cheat/.cheat/find b/cheat/.cheat/find
index 680abb3..aecacbd 100644
--- a/cheat/.cheat/find
+++ b/cheat/.cheat/find
@@ -46,5 +46,5 @@ find . -type f -samefile MY_FILE_HERE 2>/dev/null
# To find all files in the current directory and modify their permissions
find . -type f -exec chmod 644 {} \;
-# Find last edited files
-find $1 -type f \( \! -iname ".DS_Store" \) -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head
+# Find last edited files and ignore .DS_Store file and #recycle path (fuck mac)
+find . -type f -not \( -iname ".DS_Store" -o -path "*#recycle*" \) -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head