1
0
mirror of https://github.com/Melon-Bread/gnu-slash-dot-files synced 2024-11-28 18:28:20 -05:00
gnu-slash-dot-files/.yadm/bootstrap

62 lines
2.0 KiB
Plaintext
Raw Normal View History

2019-03-06 11:40:36 -05:00
#!/usr/bin/bash
# Install Programs
2019-03-08 22:17:18 -05:00
echo "~Installing Programs~"
2019-03-30 21:03:14 -04:00
sudo pacman -S --needed curl git lsd mosh neofetch neovim python python-black python-neovim python-pip rustup \
2019-03-27 23:59:01 -04:00
tmux youtube-dl zathura zathura-cb zathura-pdf-mupdf zathura-ps zsh --noconfirm
2019-03-06 11:40:36 -05:00
2019-03-23 14:58:42 -04:00
# Install yay for the AUR
echo "~Installing yay~"
git clone https://aur.archlinux.org/yay.git
cd yay/
makepkg -si
cd ..
rm -rf yay/
2019-03-06 11:40:36 -05:00
# Install SpaceVim (via https://spacevim.org/quick-start-guide/)
2019-03-08 22:17:18 -05:00
echo "~Installing SpaceVim~"
2019-03-06 11:40:36 -05:00
curl -sLf https://spacevim.org/install.sh | bash
2019-03-23 14:15:06 -04:00
# Setup package manager for for tmux
echo "~Installing tpm~"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
2019-03-06 11:40:36 -05:00
# Install Oh-My-Zsh (https://github.com/robbyrussell/oh-my-zsh/)
2019-03-08 22:17:18 -05:00
echo "~Installing Oh My Zsh~"
2019-03-06 11:40:36 -05:00
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
export ZSH_CUSTOM=~/.oh-my-zsh/custom
# Install extra Zsh plugins
2019-03-08 22:17:18 -05:00
echo "~Installing Oh My Zsh Extras"
2019-03-06 11:40:36 -05:00
# Spaceship Prompt
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# zsh-history-subsearch-search
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
2019-03-18 01:42:00 -04:00
# yadm-zsh
git clone https://github.com/juanrgon/yadm-zsh ${ZSH_CUSTOM:-~/.oh-my-zsh/custom/}/plugins/yadm-zsh
# Reclaiming our zsh config
echo "~Setting backup as main config~"
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
# Set zsh as main shell
echo "~Setting ZSH as user shell~"
chsh -s /usr/bin/zsh
2019-03-06 11:40:36 -05:00
# Refresh changes
source ~/.zshrc