Setup your programming Environment on a new machine

Setting up Terminal

  • Setting up colorscheme: Dark theme are cosidered to cause less eye strain.
  • Use dracula with iTERM on mac and Dracula colorscheme with GNOME Terminal on Linux.
  • Go to Terminal -> Preferences -> Settings -> Keyboard -> Select use option as meta keys
  • Go to Terminal -> Preferences -> Settings -> Keyboard -> Delete shortcuts having (Alt + left arrow) and (Alt + Right arrow)
  • Install source code pro font on Ubuntu.
  • Set the font in terminal profiles as well.

Setup zshrc

Setup Editor

  • Nvim is available at https://github.com/neovim/neovim.git
  • Installation:
    • With sudo access: sudo apt install neovim && sudo apt install python3-neovim (since ubuntu 18.04)
    • Without sudo: Download a pre-built image (currently, nvim-linux64.tar.gz)
    • Make sure that the path to desired nvim exists is $PATH
    • For Mac, brew install neovim also should work.
  • Setup
    • Install vim-plug plugin manager from https://github.com/junegunn/vim-plug
    • Make sure that the following structure exists in your machine $HOME/.config/nvim/init.vim
    • Download Init Vim file and place it in the above described path.
    • pip install pynvim jedi
  • Plugins
    • All plugins can be installed by running :PlugInstall in nvim
    • The Coc nvim plugin (available at https://github.com/neoclide/coc.nvim.git) requires more setup.
      • Install nodejs on your machine by downloading the binary from https://nodejs.org/en/download/
      • Install coc-python using :CocInstall coc-python
      • Set the desired python interpreter using :CocCommand python.setInterpreter. Do checkout other options by using :CocCommand
  • Additionally install a terminal based editor micro
    • breq install micro
    • Download the required package from https://github.com/zyedidia/micro/releases
    • tar -xvf micro-1.2.1-60-linux64.tar.gz
    • Point the $PATH variable to include micro-1.x.x/micro
    • Execute micro command from terminal in a normal fashion.

Setup TMUX

Setup OneDrive

  • Use Microsoft OneDrive storage to sync all your files across different machines
  • Installation
    • In a local opt folder, git clone https://github.com/abraunegg/onedrive.git
    • make && export DESTDIR=$HOME/opt/onedrive/ make install
    • Make sure that $PATH points to this folder
    • Try onedrive -h for exploring various options.