Added setup scripts

This commit is contained in:
Vasili Svirydau
2021-03-23 16:26:57 -07:00
parent 86ccd065a2
commit 4744842ce6
4 changed files with 21 additions and 1 deletions

6
setup.d/10-shellcheck.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
if ! command -v shellcheck > /dev/null; then
sudo apt update > /dev/null && sudo apt install shellcheck > /dev/null;
echo "Installed Shellcheck"
fi

9
setup.d/10-starship.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if ! test -x /usr/local/bin/starship; then
curl -fsSL https://starship.rs/install.sh | bash
fi
if ! grep starship ~/.bashrc > /dev/null; then
echo "eval \"\$(starship init bash)\"" >> ~/.bashrc
fi