gnu-plus-dotfiles/.config/yadm/bootstrap

41 lines
1.7 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 -e "\e[38;5;$((RANDOM%257))mInit submodules\e[0m"
yadm submodule update --recursive --init
echo -e "\e[38;5;$((RANDOM%257))mInstalling tmux package manager (tpm)\e[0m"
sudo pacman -S tmux --noconfirm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo -e "\e[38;5;$((RANDOM%257))mInstalling SpaceVim\e[0m"
sudo pacman -S neovim python-pyvim xclip notedown --noconfirm
curl -sLf https://spacevim.org/install.sh | bash
echo "Setting up Rust"
sudo pacman -S rustup --noconfirm
rustup install stable
paru -S cargo-update
echo -e "\e[38;5;$((RANDOM%257))mInstalling oh-my-zsh\e[0m"
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
echo -e "\e[38;5;$((RANDOM%257))mInstalling other common programs\e[0m"
sudo pacman -S mpv nethack vifm kitty topgrade --noconfirm