add fish as default shell bootstrap

This commit is contained in:
Sloane Perrault 2022-07-17 10:30:18 -04:00
parent d95ddf7f16
commit 00a81df681
2 changed files with 16 additions and 2 deletions

View file

@ -6,5 +6,3 @@ else
echo "installing fisher" echo "installing fisher"
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
end end
fisher update

View file

@ -0,0 +1,16 @@
#!/bin/bash
FISH=$(which fish)
if grep --quiet $FISH /etc/shells; then
echo "fish already in shells list"
else
echo "adding fish to shells list"
echo $FISH | sudo tee -a /etc/shells
fi
if [ $FISH == $SHELL ]; then
echo "fish already default shell"
else
chsh -s $FISH
fi