gnu-plus-dotfiles/.config/yadm/bootstrap
2021-09-28 04:33:09 +00:00

39 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
# Because Git submodule commands cannot operate without a work tree, they must
# be run from within $HOME (assuming this is the root of your dotfiles)
cd "$HOME"
echo "Init submodules"
yadm submodule update --recursive --init
echo "Installing tmux package manager (tpm)"
sudo pacman -S tmux --noconfirm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "Installing SpaceVim"
sudo pacman -S neovim python-pyvim xclip --noconfirm
curl -sLf https://spacevim.org/install.sh | bash
echo "Setting up Rust"
sudo pacman -S rustup --noconfirm
rustup install stable
echo "Installing oh-my-zsh"
sudo pacman -S zsh fzf dust ripgrep procs bat lsd starship --noconfirm
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
source ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
mv ~/.zshrc ~/zshrc.temp
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc