README: Remove chsh section

This is awkward because some systems really want $SHELL to be
sh-compatible, it's also duplicated with the actual docs and not
really something you have to do in the first five minutes of using
fish.

Supersedes #10229
This commit is contained in:
Fabian Boehm 2024-01-20 11:37:29 +01:00
parent e014c981f2
commit 84b03c24d5

View File

@ -112,29 +112,6 @@ The following optional features also have specific requirements:
- ``colorls`` is used, if installed, to add color when running ``ls`` on platforms
that do not have color support (such as OpenBSD)
Switching to fish
~~~~~~~~~~~~~~~~~
If you wish to use fish as your default shell, use the following command, from inside fish:
::
chsh -s (command -s fish)
``chsh`` wants a full path, this will try to find where fish is installed. If that doesn't work, try to pass the path manually - it will usually be ``/usr/local/bin/fish`` if you built from source, or ``/usr/bin/fish`` if you installed a package.
``chsh`` will prompt you for your password and change your default shell. Log out, then log in again for the changes to take effect.
Use the following command if fish isnt already added to ``/etc/shells`` to permit fish to be your login shell (e.g. if ``chsh`` complains that it "doesn't exist" or similar):
::
command -s fish | sudo tee -a /etc/shells
To switch your default shell back, you can run ``chsh -s /bin/bash``
(substituting ``/bin/bash`` with ``/bin/tcsh`` or ``/bin/zsh`` as
appropriate).
Building
--------