by suralind · 7mo ago · 0 comments
- Go - backend + CLIs
- TypeScript - fronted, occasionally zx for more complex scripts
- Nushell as my scripting language (I’ve been relentlessly using it everywhere I can instead of bash/zsh and man it is such an improvement)
I heard so much good stuff about both Zig and Rust and would love to eventually get to know one of them.
Yesterday I noticed I still don't know how to write
ls | where modified < ((date now) - 3wk) | each { |fn| rm $fn.name }
in zsh after all years. find . -type f -mtime +21 -delete
Or if you have fd fd -t f --changed-before 3w -X rmThis makes me feel old.
dir | ? LastWriteTime -lt (Get-Date).AddDays(-21) | del dir | ? lastwritetime -lt (get-date).adddays(-21) | del
PowerShell is not case sensitive (but nushell and bash are).