Why I try fish over zsh

I’ve been using zsh as my main shell for years. It works really well, and I love it. But recently, I started to give fish a try, and I found it is great and have set it as my default shell on my Mac. I’m gonna give you my reasons, for your reference. Its autosuggestion and completion functionalities work out of the box, which I would have to download oh-my-zsh for zsh. It’s nice but annoying to sync between devices. In fish, you don’t need any other plugins and settings, they just work. Actually that’s the main reason for me, then I can sync my configurations with my dotfiles. It is really friendly for configuration. I’m not a great hacker and not the kind of guy who wants to dive in everything. Fish offer a web-based config interface. You can invoke it by typing fish_config in the shell, then you can configure your shell by clicking the UI, AND the changes you make are essentially text in several files, which you can carry them with whatever your sync system is. Zsh is strong and nice, but some of its syntax and concepts(some inherited from the older sh/bash) are really hard to understand. For example, “variable substitution” or the “$@/$?/…” stuff. I don’t think they are human-readable. Fish shell language, however, is more like a modern programming language, with better documentation(type help in fish, you will also get a web-based doc!) But I’m not saying that I will use fish ONLY and FOREVER. Zsh is also great and better for some scenarios, so here are my opinions about what kind of people may want to use zsh, even bash. ...

November 27, 2023 · 2 min · ChaosNyaruko

When Online Shaming Goes Too Far

A talk from TED. “Humans over ideology”, please. We are in “grey areas”, not black OR white.

November 11, 2023 · 1 min · ChaosNyaruko

My opinions on worse-is-better

I got something from “Worse is Better” His example: two famous people, from MIT and Berkeley respectively, once met to discuss operating system issues. The “PC loser-ing” problem. The Berkeley (and Unix) guy , thought the right solution was “for the system routine to always finish, but sometimes an error code would be returned that signaled that the system routine had failed to complete its action.”, rather than “to back out and restore the user program PC to the instruction that invoked the system routine so that resumption of the user program after the interrupt, for example, re-enters the system routine.”. Because “the right thing was too complex.”. ...

September 14, 2023 · 2 min · ChaosNyaruko

What do I learn from trying to "master" an editor

Intro I am a Vim user(and now Neovim, wish that it wouldn’t be “was”). To be honest, I am not an expert on vim, and configuring my own vim really takes some time, but I really find something useful during my “playing” time. Apologies for my poor English in advance. Fun This is the most important thing. Defining my own editor is just like playing LEGO, even more interesting. There exists infinite possibilities in this amazing editor (So is Emacs/VSCode/…). You can almost create anything you want about text editing in this environment. Thanks to Bram, may he rest in peace🙏 . ...

August 26, 2023 · 3 min · ChaosNyaruko

How to edit efficiently

inspired by https://www.youtube.com/watch?v=5fBkVjNryVQ Sharpen the saw You have to keep on tuning the set of commands you use for your needs. Use Feedback: Learn from what you do. Don’t try to learn everything, just the things you need. Summary Step1: Detect inefficiency Find out what you waste time on Step2: Find a quicker way read the on-line help read the quick refeference, bookts, etc. ask friends and colleagues search the internet do it youself Step3: Make it a habit ...

August 20, 2023 · 1 min · ChaosNyaruko