Skip to content

Instantly share code, notes, and snippets.

@stlehmann
Last active January 13, 2018 10:12
Show Gist options
  • Save stlehmann/5feae3fd03e76975ea81b91e8e1f776f to your computer and use it in GitHub Desktop.
Save stlehmann/5feae3fd03e76975ea81b91e8e1f776f to your computer and use it in GitHub Desktop.
My provisioning script for Debian environment
# 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