In any interactive shell, dash executes ~/.shinit, which contains one line: exec /usr/bin/fish.Įvery config item I need from my shell goes into ~/.profile, written in easy, conventional posix sh- and I still get to use fish as my interactive shell, without having to go through the trouble of adopting its config to my system. The FISH shell init files are /.fish, PREFIX/etc/fish/. Make default shell bash mac How To Change The Default Shell In Linux (Bash, Zsh, bash - How can I set my default shell to start up tmux - Unix Web26 Sep. To do this you need to run this command to add it to /etc/shells: echo '/usr/local/bin/fish' sudo tee -a /etc/shells. FISH is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family. The first line of my ~/.profile is ENV=$HOME/.shinit export ENV. On OSX you apparently have to add this to the /etc/shells file as described in this issue titled: OS X refuses to setting fish as default shell (installed via Homebrew) 989. My environment always works, I don’t have to learn fish or any other syntax. profile a number of different times for a number of different shells, I came up with a way to decouple my environment config from the shell I use. I just want a helpful shell, I don’t want to have to know yet another language, and I deeply resent fish every time it doesn’t process the line of posix sh I paste into it from a wiki…Īfter jumping between several different shells and rewriting my. These days I needed to configure my new Mac and I tried to use Fish as my default shell, I suffered a little to discover the details and how to make everything. Which works for me, because I have no interest in learning fish syntax. One of the things I like about fish is how there are sane defaults and I don’t need to have any config.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |