Gadget for ubuntu terminal prompt - fish

1. Install fish

sudo apt-get install fish

2. Use

1. Manual entry

Type in the command line fishand press Enter to enter fish.

2. Automatically enter

Configure fish as the default shell so that fish is entered by default every time.

sudo chsh -s /usr/bin/fish

3. Frequently Asked Questions

1. chsh: PAM: Authentication failure

sudo chsh -s /usr/bin/fishAn error occurred while proceeding chsh: PAM: Authentication failure:
Solution :
Modify /etc/pam.d/chsh the file with the following content:

auth       required   pam_shells.so
修改后
auth       sufficient   pam_shells.so

2. Turn off printing on startup

Turn off the Welcome to fish, the friendly interactive shell printed every time you open the terminal

2.1 Edit configuration file

Open the terminal and editnano ~/.config/fish/config.fish

set fish_greeting ""

Save and exit;

Guess you like

Origin blog.csdn.net/qq_38429958/article/details/131827403