Skip to content

Tian Qi's Configs. include zsh, vim, lint etc.

Notifications You must be signed in to change notification settings

kitian616/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config

准备工作

Install nvm, pyenv, rbenv

nvmpyenvrbenv 分别为 Node.js,Python,Ruby 的版本管理工具,提供了版本下载安装和版本切换的功能,推荐使用这样的版本管理工具来管理 Node.js,Python,Ruby 等开发环境。

Node.js,Python 和 Ruby 是很多开源工具所依赖的环境,最好一开始就将这些环境配置好。当然还有 gcc,g++,make 这样的工具,这些工具在 Unix/Linux 上都是很容易获得的。

java 也有类似的版本管理工具jenv,但它并不提供下载的功能。

macOS

# Don't use Homebrew to install nvm!
brew install pyenv
brew install rbenv
cd ~
git clone https://github.com/creationix/nvm.git .nvm

Ubuntu, Debian

apt install nvm
apt install pyenv
apt install rbenv

Arch Linux

pacman -S nvm
pacman -S pyenv
pacman -S rbenv

终端环境的配置

为了能够使用上述的工具,需要对终端环境(bash/zsh)进行配置。(本项目的 _zshrc 文件已经对它们进行了配置)

Vim,Zsh 的配置

见 vim, Zsh 目录 README。

安装配置

在进行了上述的步骤和每个配置的步骤之后就可以使用该配置了。

当然,你也可以根据自己的喜好进行配置。

git clone https://github.com/kitian616/config.git ~/.tq_config
ln -s ~/.tq_config/vim/_vimrc ~/.vimrc
ln -s ~/.tq_config/zsh/_zshrc ~/.zshrc
# ln -s ~/.tq_config/lint/htmlhint/_htmlhintrc ~/.htmlhintrc
# ln -s ~/.tq_config/lint/stylelint/_stylelintrc ~/.stylelintrc
# ln -s ~/.tq_config/lint/eslint/_eslintrc ~/.eslintrc
# ln -s ~/.tq_config/lint/textlint/_textlintrc ~/.textlintrc

更新

cd ~/.tq_config && git pull && cd -