Skip to content

Instantly share code, notes, and snippets.

@pyaillet
Last active May 27, 2019 20:27
Show Gist options
  • Select an option

  • Save pyaillet/f5492750c64dbf5445f58cf4dd2e8d88 to your computer and use it in GitHub Desktop.

Select an option

Save pyaillet/f5492750c64dbf5445f58cf4dd2e8d88 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Install
apt update
apt install -y python3 python3-pip neovim docker.io golang
USER="pyaillet"
groupadd $USER || true
useradd -d /home/$USER -m -g $USER \
-G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers \
$USER || true
# Setup neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -o ~/.local/share/nvim/init.vim --create-dirs \
https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
nvim +PlugInstall +qall
# Setup golang
mkdir -p /home/$USER/go
cat <<EOF >> /home/$USER/.bashrc
export GOPATH="/home/$USER/go"
export PATH="\$PATH:\$GOPATH/bin"
alias nv=nvim
EOF
usermod -a -G docker $USER
wall "*** Init done ! ***"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment