DEV Community

あとやす / a_yasui
あとやす / a_yasui

Posted on

1

I setup to `fish-shell` for my default shell

I usually used to zsh as default shell between 5,6 years ago. And my .zshrc and .zshenv are very chaos. I think these are not good. I have two think. First: I clean up to .zshrc and .zshenv, Second: I change the shell. I choice Second think, change the shell. It is good to change the environ and I see fish-shell at sometime.

My machine is Mac OSX (10.15.6).

Install/Setup the shell

Simply !!

> brew install fish

Change the default shell

I try chsh -s /usr/local/bin/fish . That was not work. Fish-shell is not default shell, Well so I add fish-shell path for /etc/shells.

> sudo sh -c 'echo /usr/local/bin/fish >> /etc/shells'
Password:
> tail -1 /etc/shells
/usr/local/bin/fish 

One more try the chsh.

> chsh -s /usr/local/bin/fish

Install Plugin -- autojump --

I always use autojump command. j work, j Docu, j Desk,... I setup to autojump.

> brew reinstall autojump

and I write Fish configure.

> echo '[ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish' >> ~/.config/fish/config.fish;

Theme

The fish-shell has theme-controll-plugin (Oh-MyFsh)[https://github.com/oh-my-fish/oh-my-fish]

OK, I install.

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

It's done! Well, So let's try install the some themes.

<~>-> omf i ocean
Updating https://github.com/oh-my-fish/packages-main master... Done!
Error: ocean already installed.
 ⚓  ~  

How do i change the font color?

I use to light terminal. So I did not see the commands.

I do to fish_config command And change the font color. This is Good :-)

Alt Text

I see these

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay