3 ms·
Love the Python syntax so I’m tempted to try this, but I wish it incorporated some of the ideas in nushell (e.g. structured data).
by roger_ 3y ago
Love the Python syntax so I’m tempted to try this, but I wish it incorporated some of the ideas in nushell (e.g. structured data).
- geophile 3y agoCheck out marcel (https://marceltheshell.org https://marceltheshell.org). It's yet another pipe-objects-instead-of-strings shell (like nushell). Unlike nushell, you pipe Python values. Marcel has no sublanguages (like awk, sed, ...). Instead, when logic is needed, you write Python code, delimited by parens. So: (USER) prints the value of the USER environment variable. (f'Hello {USER}') evaluates the expression inside the parens and prints "Hello jao" (for me). ls | select (f: time.time() - f.mtime < days(2)) ls finds files in the current directory, pipes them to select, which keeps the files that were modified in the last two days (days is a builtin function). Lots of examples on the website.
- madspindel 3y agoCan I use marcel on Windows? If not, any plans on supporting it in the future? And even better, if I could install it with: winget install marcel
- geophile 3y agoNo, it does not run on Windows. I'd love someone to help port it to Windows ...