Added setup scripts
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
if test -x starship; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
|
||||
Executable
+6
@@ -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
|
||||
Executable
+9
@@ -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
|
||||
@@ -39,6 +39,9 @@ find . -maxdepth 1 -type f -printf "%f\0" | while IFS= read -r -d $'\0' P; do
|
||||
chmod -R o-rwx,g-rwx "$target"
|
||||
done
|
||||
|
||||
for f in $DOTFILES/setup.d/*.sh; do source "$f"; done
|
||||
unset f;
|
||||
|
||||
(
|
||||
echo "for f in \"$DOTFILES/bash.d/*.sh\"; do source \"\$f\"; done"
|
||||
echo "unset f"
|
||||
|
||||
Reference in New Issue
Block a user