Config-your-dev-tools
This is for configuring development environment, e.g., Oh My Zsh, Vim etc.
Basic setup(for Ubuntu only)
# declare variables
PACKAGE=~/package
DOWNLOAD=~/download
# create file structures
mkdir $PACKAGE
mkdir $DOWNLOAD
Oh My ZSH
Download
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
agnoster
Config color theme toNavigate to .zshrc and set ZSH_THEME to agnoster
More information about installing the fonts and configuring it properly, you may find detailed instructions in this blog: "Jazz Up Your “ZSH” Terminal In Seven Steps — A Visual Guide"
Spf13-vim
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
Python
You may want to install your own Python so that you can avoid install Python package to root.
cd $DOWNLOAD
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
tar -xvf Python-3.*.*.tar.xz
cd Python-3.*.*.tar.xz
./configure --prefix=/PATH/TO/PACKAGE
make && make install
Pipenv
pip install pipenv
Git
git config --global user.name "username"
git config --global user.email "email"
Sublime Text
-
Package Control
There's the instruction for installation in Package Controll Installation -
Suggested packages
- LaTex tools: Search for
MarkdownLivePreview
- MarkdownLivePreview: Search for
LaTeXTools
- AutoDocstring: Search for
AutoDocstring
- LaTex tools: Search for
-
Color Schemes
LaTex with Sublime
To write and compile LaTex files with automatic previews locally on your Mac, you may want to follow steps in How to Use LaTeX in Sublime Text on Mac. Here's also a Chinese instruction: MAC上使用SUBLIME TEXT3编写LATEX
Pylint
What is Pylint
Pylint is a tool that checks for errors in Python code, tries to enforce a coding standard and looks for code smells. It can also look for certain type errors, it can recommend suggestions about how particular blocks can be refactored and can offer you details about the code's complexity.
Install
You can find the official guidence here
# Conda
conda install -c anaconda pylint
# Pip
pip install pylint
Python code style
PEP 8 -- Style Guide for Python Code
Google Python Style Guide
Some useful commands
# To generate a default config file
pylint --persistent=n --generate-rcfile > pylint.conf
# To check single file
pylint --rcfile=pylint.conf manage.py