Skip to content

coderfreestyle/Config-your-dev-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

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

Download

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Config color theme to agnoster

Navigate 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"

 curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh

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
pip install pipenv
git config --global user.name "username"
git config --global user.email "email"

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

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

About

This is for configuring development environment, e.g., Oh My Zsh, Vim etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages