dotfiles/ubuntu/install-fish.sh

13 lines
260 B
Bash
Raw Normal View History

2020-06-02 07:55:57 +00:00
#!/bin/bash
set -e
sudo add-apt-repository ppa:fish-shell/release-3 -y
sudo apt update
sudo apt install fish -y
DEFAULT_SHELL=$(getent passwd $USER | cut -d: -f7)
FISH_SHELL=$(which fish)
if [ "$DEFAULT_SHELL" != "$FISH_SHELL" ]; then
chsh -s $FISH_SHELL
fi