From 00a81df6817d8bf69ef8b5d0fe4bd2d192d5d900 Mon Sep 17 00:00:00 2001 From: Sloane Perrault Date: Sun, 17 Jul 2022 10:30:18 -0400 Subject: [PATCH] add fish as default shell bootstrap --- .config/yadm/bootstrap.d/003_fisher | 2 -- .config/yadm/bootstrap.d/004_fish | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 .config/yadm/bootstrap.d/004_fish diff --git a/.config/yadm/bootstrap.d/003_fisher b/.config/yadm/bootstrap.d/003_fisher index 3480c63..e87efb7 100755 --- a/.config/yadm/bootstrap.d/003_fisher +++ b/.config/yadm/bootstrap.d/003_fisher @@ -6,5 +6,3 @@ else echo "installing fisher" curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher end - -fisher update diff --git a/.config/yadm/bootstrap.d/004_fish b/.config/yadm/bootstrap.d/004_fish new file mode 100755 index 0000000..6d89155 --- /dev/null +++ b/.config/yadm/bootstrap.d/004_fish @@ -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