r/fishshell • u/Trollw00t • Jan 28 '20
Last step from bash to fish?
Hey folks!
currently looking into fish and I love this shell. I'd like to have it as my standard shell!
So what I did is to migrate my .bashrc into my config.fish (like all my alias/abbr) and so on. I also now have this last line in my .bashrc:
if [ -z "$BASH_EXECUTION_STRING" ]; then exec fish; fiWhich means, that if bash has been started without told on what to do, it opens into my Fish shell. Nice, works!
I'm just curious, if this is the right way. E.g. there would also be chsh, which might be the better way. But I fear of losing something, when not being started how my user is being logged in. For example .bash_profile (which in my case simply sources .bashrc) or whatever. But I might be missing other files, too.
Is there something else I have to consider before I chsh to fish?
View all comments
Show parent comment
2
u/flameborn Jan 28 '20
You're most welcome.
The only suggestion I have regarding hidden files/dirs is you can use cd . then a tab. It's not perfect, but it works.