Fish shell!

What do you have and what do you want?

Moderators: b1o, jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Fish shell!

Postby viking60 » 11 Jan 2016, 00:35

Image
The Linux command shell usually comes with bash and many prefer the elegant ZSH. But now there is a new kid in town that will take the mystery out of the CLI for greenhorns.

Behold the Fish Shell!
It was in my standard repos so I simply installed it.

The good thing about the Fish shell is that it will not take over your terminal:
You need to start it with

Code: Select all

fish

After that you can type help which will fire a user friendly html page. That is good news for newbies. And if you need your standard bash or zsh shell back you can simply type

Code: Select all

exit

That is probably necessary if you need your aliases because fish shell will not adopt them out of the box.
If you type "alias" the Fishshell will explain to your that it uses functions and that you can type

Code: Select all

functions
to see the built in standard functions.
To create new ones you can use alias in the same way as in bash/ZSH so I guess your current aliases can be implemented.

As you type fishell will make suggestions to complete the command so you even do not have to finish it.

Fishshell also comes with syntax highlighting; so if your command is red you are doing something wrong - blue is good +1

I tried to alter the Fish prompt and learned that I could do that with

Code: Select all

fish_config
and was taken to a website where I could see all the prompts offered with ability to simulate.
By typing fish_config you will get that website up locally where you can pick your desired layout.

This shell makes the Terminal a more comfortable place for newcomers to Linux but ironically the Web interface that takes care of all the configurations did not work for changing the terminal background color here.

Although I really like my ZSH I think I will use this one from time to time.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Fish shell!

Postby dedanna1029 » 18 Jan 2016, 15:59

Niiiiiiiiiiiccce...
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Software”