kotct / dot

A collaborative configuration for various tools.
MIT License
3 stars 2 forks source link

Darwin: force use of sh as shell for path evaluation #94

Closed rye closed 6 years ago

rye commented 6 years ago

It is thus recommended to use a ~/.profile file to configure your PATH variable, since that is what /bin/sh loads. Fish shell is non-POSIX-compliant, (which is on our list of things that we cannot assume) so by using this method of gathering information, we basically are broadening the possibilities to include all Linux/Mac machines.

cg505 commented 6 years ago

A note on this: using fish with emacs causes other problems (such as breaking dired-do-find-regexp and other similar things). If your shell is fish I would recommend including in your config (setf shell-file-name "/bin/zsh") (or some other shell).

rye commented 6 years ago

Yep, I still use /usr/local/bin/fish as my shell but I had to do a lot of extra configuration stuff locally to make it happen.

cg505 commented 6 years ago

Maybe we should considering detecting if the default shell is fish and handling that by either setting the shell to zsh or adding your configuration by default