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

46 lines
1.5 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-18 01:23:11 -04:00
sudo pacman -S curl git lsd mosh neofetch neovim python python-black python-neovim python-pip tmux zsh --noconfirm
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
# 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
# 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