add fish as default shell bootstrap
This commit is contained in:
parent
d95ddf7f16
commit
00a81df681
2 changed files with 16 additions and 2 deletions
|
@ -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
|
|
||||||
|
|
16
.config/yadm/bootstrap.d/004_fish
Executable file
16
.config/yadm/bootstrap.d/004_fish
Executable 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
|
Loading…
Reference in a new issue