Last active
March 29, 2020 16:57
-
-
Save unpluggedcoder/c096d48cb5a87417e425fa82ef91592f to your computer and use it in GitHub Desktop.
Ubuntu Vim development environment setup
This file contains 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
#!/usr/bin/env bash | |
# Ubuntu 18.04 | |
# Rust + Postgresql 10 + redis development environment | |
# Zsh | |
sudo apt install zsh | |
# oh-my-zsh | |
# using curl | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# or using wget | |
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" | |
# vim | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
# For deoplete.nvim | |
pip3 install pynvim msgpack | |
# ctags | |
sudo apt install \ | |
gcc make \ | |
pkg-config autoconf automake \ | |
python3-docutils \ | |
libseccomp-dev \ | |
libjansson-dev \ | |
libyaml-dev \ | |
libxml2-dev | |
git clone https://github.com/universal-ctags/ctags.git | |
cd ctags | |
./autogen.sh | |
./configure | |
make | |
sudo make install | |
# tmux | |
sudo apt install tmux | |
# LLVM | |
bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" | |
# To install a specific version of LLVM: | |
# wget https://apt.llvm.org/llvm.sh | |
# chmod +x llvm.sh | |
# sudo ./llvm.sh <version number> | |
# Postgresql | |
sudo apt install -y postgresql-10 libpq-dev | |
# Redis | |
sudo apt install -y redis-server redis-tools | |
################## | |
# For Chinese ONLY | |
# pip | |
tee -a ~/.pip/pip.conf <<'EOF' | |
[global] | |
trusted-host=mirrors.aliyun.com | |
index-url=http://mirrors.aliyun.com/pypi/simple | |
EOF | |
################## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment