From the 80s to 2020, I find myself living more and more in DOS, Windows, Powershell, Bash/Zsh, Kube and Cloud shells, and looking forward to leveraging the new Windows Terminal once my work laptop gets upgraded.
I appreciate the complexity and flexibility that Zsh has vs. DOS, and miss a lot of the features.
Sometimes though, there are some interesting tricks I forget about when using DOS/Windows/Powershell.
Grab the history to a file. I always hit F7, and would appreciate having my session's file around for a basic command window.
doskey /HISTORY > history.txt
https://www.howtogeek.com/298163/how-to-use-your-command-history-in-the-windows-command-prompt/
Also see Start Transcript
https://4sysops.com/archives/powershell-transcript-record-a-session-to-a-text-file/
Pipe a python script's output and stderr output
python -m myscript.py &2>1
Teeing Objects
https://adamtheautomator.com/tee-object-powershell/
Ascii Doom
https://dario-zubovic.itch.io/1337-doom
Last one should be cross-platform!
No comments:
Post a Comment