Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 8, 2020 06:33 pm GMT

chsh - Have you considered switching your default shell?

  • Are you stuck with bash?
  • Have you tried zsh but found it too complex to set up properly?
  • You've never found sh syntax compelling?

Let me introduce you to fish - Friendly Interactive SHell.

fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family. fish includes features like syntax highlighting, autosuggest-as-you-type, and fancy tab completions that just work, with no configuration required.

fish demo

I am using fish as my default shell for about two years now and love it.

  • fish has autocomplete for most things you can imagine built-in. And if it lacks built-in support, it scans manual pages and extracts auto-completion information from there.
  • autocomplete is context based, so the commands you typed recently in particular directory show first as suggestions.
  • fish has help and config built-in in a very neat way - it launches your default browser with a page from local installation.
  • built-in programming language of fish is a modern one, without holding to sh compatibility.

If you want to extend your local setup of fish with easily manageable plugins and themes, just install Oh My Fish:

curl -L https://get.oh-my.fish | fish

BEWARE: fish programming syntax differ from bash, thus one-liners you may be using will need adaptation. But fish detects most of misuse and has a helpful suggestions how you should rewrite your command.

> LANG=PL man manfish: Unsupported use of '='. To run 'man' with a modified environment, please use 'env LANG=PL man...'

Give it a try and let me know how it went.


Original Link: https://dev.to/smokku/chsh-have-you-considered-switching-your-default-shell-4ech

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To