Skip to content

Instantly share code, notes, and snippets.

@xvzftube
Created March 2, 2021 14:30
Show Gist options
  • Save xvzftube/3682f1e422232e2e092d603b3a12a8f9 to your computer and use it in GitHub Desktop.
Save xvzftube/3682f1e422232e2e092d603b3a12a8f9 to your computer and use it in GitHub Desktop.
#!/bin/sh
# License: GNU GPLv3
sudo apt-get update && apt-get upgrade -y
# install other common utils
sudo apt-get install build-essential wget curl neovim make tmux git python3-pip neofetch stow -y
# R section inspired by https://cran.r-project.org/bin/linux/debian/
# R - dependencies necessary to add a new repository over HTTPS (CRAN GPG depends on these)
sudo apt-get install dirmngr apt-transport-https ca-certificates software-properties-common gnupg2
# R - Add the CRAN GPG key and enable the CRAN repository by adding to /etc/apt/sources.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'
sudo add-apt-repository 'deb http://cloud.r-project.org/bin/linux/debian buster-cran40/'
sudo apt update
sudo apt install -t buster-cran40 r-base
sudo apt install r-base-dev r-cran-tidyverse
# OpenBlas library to get higher performance for linear algebra operations
sudo libopenblas-base -y
# make a home for init.vim
mkdir -p dotfiles/nvim/.config/nvim/
wget -O dotfiles/nvim/.config/nvim/init.vim https://gist.githubusercontent.com/xvzftube/5380163d8fc9090796eb6fcc61fe022d/raw/176ef6d2691a8eb0c29d778b0971c8a331009781/init.vim
# fancy font
cd /usr/share/fonts/
sudo git clone https://github.com/adobe-fonts/source-code-pro.git
cd
sudo fc-cache -fv
# vimplug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
# jedi is an autocomplete library. Very nice for vim.
pip3 install jedi flake8 isort pynvim black
# stow configs
cd dotfiles
stow nvim
cd
# nvim into dotfiles/nvim/.config/nvim and run :PlugInstall # to install all vim packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment