.
This commit is contained in:
13
setup.d/00-bash.sh
Normal file
13
setup.d/00-bash.sh
Normal 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
|
||||
@@ -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
8
setup.d/20-asdf-vm.sh
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user