41 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-05-14 01:31:51 -04:00
#!/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"
2021-09-28 04:40:16 +00:00
echo -e "\e[38;5;$((RANDOM%257))mInit submodules\e[0m"
2021-05-14 01:31:51 -04:00
yadm submodule update --recursive --init
2021-09-28 04:40:16 +00:00
echo -e "\e[38;5;$((RANDOM%257))mInstalling tmux package manager (tpm)\e[0m"
2021-09-28 04:33:09 +00:00
sudo pacman -S tmux --noconfirm
2021-07-22 00:03:23 -04:00
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
2021-09-28 04:20:56 +00:00
2021-09-28 04:40:16 +00:00
echo -e "\e[38;5;$((RANDOM%257))mInstalling SpaceVim\e[0m"
2021-09-28 01:10:16 -04:00
sudo pacman -S neovim python-pyvim xclip notedown --noconfirm
2021-09-28 04:20:56 +00:00
curl -sLf https://spacevim.org/install.sh | bash
2021-09-28 04:24:38 +00:00
echo "Setting up Rust"
sudo pacman -S rustup --noconfirm
rustup install stable
2021-09-28 04:40:16 +00:00
paru -S cargo-update
2021-09-28 04:24:38 +00:00
2021-09-28 04:40:16 +00:00
echo -e "\e[38;5;$((RANDOM%257))mInstalling oh-my-zsh\e[0m"
2021-09-28 04:33:09 +00:00
sudo pacman -S zsh fzf dust ripgrep procs bat lsd starship --noconfirm
2021-09-28 04:24:38 +00:00
2021-09-28 04:20:56 +00:00
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"
2021-09-28 04:24:38 +00:00
mv ~/.zshrc ~/zshrc.temp
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
2021-09-28 04:20:56 +00:00
2021-09-28 04:40:16 +00:00
echo -e "\e[38;5;$((RANDOM%257))mInstalling other common programs\e[0m"
sudo pacman -S mpv nethack vifm kitty topgrade --noconfirm
2021-09-28 04:20:56 +00:00