[misc] refactory stage 1

This commit is contained in:
Klesh Wong 2020-09-17 10:24:39 +00:00
parent ca52056e5b
commit 72da497067

View File

@ -1,12 +0,0 @@
#!/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