Last active
January 13, 2018 10:12
-
-
Save stlehmann/5feae3fd03e76975ea81b91e8e1f776f to your computer and use it in GitHub Desktop.
My provisioning script for Debian environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Provision script for a development environment on Debian including | |
# neovim, tmux, mc, Python3, git | |
# upgrade system | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# install main packages | |
sudo apt-get install -y man wget curl python3 python3-pip tmux neovim htop mc zsh git ruby | |
# ---------------- | |
# install zsh | |
# ---------------- | |
# install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# zsh autosuggestions | |
git clone git://github.com/zsh-users/zsh-autosuggestions $HOME/.oh-my-zsh/plugins/zsh-autosuggestions | |
# copy zsh config | |
rm ~/.zshrc | |
wget https://gist.githubusercontent.com/stlehmann/8d31d28078b33791d621cc42ee0b18ac/raw/0fae5aa230abe9331beaafdb097ce54cba530aef/.zshrc | |
sed -i 's@.*export ZSH.*@export ZSH='"$HOME"'/.oh-my-zsh@g' ~/.zshrc | |
# change default shell to zsh | |
chsh -s /usr/bin/zsh | |
# ---------------- | |
# configure neovim | |
# ---------------- | |
# install vim-plug | |
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
# install config file | |
git clone https://github.com/MrLeeh/neovim-config.git ~/.config/nvim | |
# install all plugins | |
vim +silent +VimEnter +PlugInstall +qall | |
# ---------------- | |
# configure tmux | |
# ---------------- | |
git clone -b debian https://github.com/mrleeh/tmux-config.git ~/.tmux | |
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf | |
# ---------------- | |
# Python packages | |
# ---------------- | |
pip3 install --user pipenv neovim | |
# ---------------- | |
# rmate | |
# ---------------- | |
mkdir $HOME/bin | |
curl -Lo ~/bin/rmate https://raw.githubusercontent.com/textmate/rmate/master/bin/rmate | |
sudo chmod a+x ~/bin/rmate | |
export PATH="$PATH:$HOME/bin" | |
exit 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment