Yori - The quiet little CMD replacement that you need to install NOW
I did a post on the difference between a console, a terminal, and a shell a while back. We talk a lot about alternative "Terminals" like the Windows Terminal (that you should download immediately) but not shells. You do see a lot of choices in the Linux space with the top give being Bash, Zsh, Fish, Tcsh, and Ksh but not a lot about alternative shells for Windows. Did you love 4DOS? Well, READ ON. (Yes I know TCC is a thing, but Yori is a different thing)
So let's talk about a quiet little CMD replacement shell that is quietly taking over my life. You should check it out and spend some time with it. It's called Yori and it's open source and it's entirely written by one Malcolm Smith. It deserves your attention and respect because Yori has quickly become my goto "DOS but not DOS" prompt.
Of course, cmd.exe isn't DOS but it's evocative of DOS and it's "Close enough to be DOS." It'll run .cmd files and batch files. If dir, and del *.*, and rd /s feels more intuitive to you than bash shell commands, Yori will fit into your life nicely.
I use PowerShell a lot as a shell and I use Bash via WSL and Ubuntu but since I started on CMD (or command.com, even) Yori feels very comfortable because it's literally "CMD reimagined."Yori offers a number of cmd++ enhancements like:
- Autocomplete suggestions as you type
- Ctrl+to select Values
- WAY better Tab completiion
- Awesome file matching
- Beyond MAX_PATH support for "DOS"
- Rich Text Copy!
- Backquote support
- Background Jobs like Unix but for DOS. SO you can use & like a real person!
- Alias! My goodness!
- which (like where, but it's which!) command
- hexdump, lines, touch, and more great added tools
- lots of "y" utils like ydate and ymem and ymore.
- New Environment variables make your batch files shine
- ANSI colors/UTF-8 support!
Download Yori, make a link, pin it, or add it to your Windows Terminal of choice (see below), and then explore the extensive Guide To Yori.
Did I mention & jobs support! How often have you done a copy or xcopy and wanted to &! it and then check it later with job? Now you can!
Job 2: c:\Program Files\Yori\ydir.exe
Job 1 (completed): c:\Program Files\Yori\ydir.exe
Job 2 (executing): c:\Program Files\Yori\ydir.exe
Job 2 completed, result 0: c:\Program Files\Yori\ydir.exe
Yori also support updating itself with "ypm -u" which is clever. Other lovely Yori-isms that will make you smile?
- cd ~ - it works
- cd ~desktop - does what you think it'd do
- Win32 versions of UNIX favorites including cut, date, expr, fg, iconv, nice, sleep, split, tail, tee, wait and which
- dir | clip - supports HTML as well!
- durable command history
And don't minimize the amount of work that's happened here. It's a LOT. And it's a great balance between compatibility and breaking compatibility to bring the best of the old and the best of the new into a bright future.
Other must-have Malcolm Smith Tools
Now that I've "sold" you Yori (it's free!) be sure to pick up sdir (so good, a gorgeous dir replacement) and other lovely tools that Malcolm has written and put them ALL in your c:\utils folder (you have one, right? Make one! Put it in DropBox/OneDrive! Then add it to your PATH on every machine you have!) and enjoy!
Adding Yori to the Windows Terminal
Yori includes it's own improved Yori-specific terminal (to go with the Yori shell) but it also works with your favorite terminal.
If you are using the Windows Terminal, head over to your settings file (from the main Windows Terminal menu) and add something like this for a Yori menu. You don't need all of this, just the basics like commandline. I added my own colorScheme and tabTitle. You can salt your own to taste.
"commandline": "c://Program Files//Yori//yori.exe",
"fontFace": "Cascadia Code",
"name": "DOS but not DOS",
"padding": "0, 0, 0, 0",
"tabTitle": "DOS, Kinda",
I want YOU, Dear Reader, to head over to https://github.com/malxau/yori right now and give Yori and Malcolm a STAR. He's got 110 as of the time of this posting. Let's make that thousands. There's so many amazing folks out there quietly writing utilities for themselves, tirelessly, and a star is a small thing you can do to let them know "I see you and I appreciate you."
Sponsor: Curious about the state of software security as we head into 2020? Check out Veracode’s 2019 SOSS X report to learn common vulnerability types, how to improve fix rates, and crucial industry data.