Added setup scripts
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
eval "$(starship init bash)"
|
||||
if test -x starship; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
|
||||
6
setup.d/10-shellcheck.sh
Executable file
6
setup.d/10-shellcheck.sh
Executable 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
9
setup.d/10-starship.sh
Executable 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
|
||||
Reference in New Issue
Block a user