This commit is contained in:
Vasili Svirydau
2021-04-16 13:43:22 -07:00
parent cc283d92bd
commit cf075eb3cc
7 changed files with 67 additions and 32 deletions

13
setup.d/00-bash.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
if [[ $SHELL =~ "bash" ]]; then
SIGIL="# Managed by dotfiles"
if ! grep "$SIGIL" ~/.bashrc > /dev/null; then
(
echo "$SIGIL"
echo "for f in $DOTFILES/bash.d/*.sh; do source \"\$f\"; done"
echo "unset f"
) >> ~/.bashrc
fi
fi

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if ! test -x /usr/local/bin/starship; then
curl -fsSL https://starship.rs/install.sh | bash
curl -fsSL https://starship.rs/install.sh | bash
fi
if ! grep starship ~/.bashrc > /dev/null; then

8
setup.d/20-asdf-vm.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if ! test -d ~/.asdf; then
echo "Cloning asdf-vm"
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
fi