An open API service indexing awesome lists of open source software.

https://github.com/kitian616/config

Tian Qi's Configs. include zsh, vim, lint etc.
https://github.com/kitian616/config

config linter-config vim vimrc zsh zshrc

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Config

## 准备工作

### Install nvm, pyenv, rbenv

[nvm](https://github.com/creationix/nvm),[pyenv](https://github.com/yyuu/pyenv),[rbenv](https://github.com/rbenv/rbenv) 分别为 Node.js,Python,Ruby 的版本管理工具,提供了版本下载安装和版本切换的功能,推荐使用这样的版本管理工具来管理 Node.js,Python,Ruby 等开发环境。

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

java 也有类似的版本管理工具[jenv](https://github.com/gcuisinier/jenv),但它并不提供下载的功能。

#### macOS

```bash
# Don't use Homebrew to install nvm!
brew install pyenv
brew install rbenv
```

```bash
cd ~
git clone https://github.com/creationix/nvm.git .nvm
```

#### Ubuntu, Debian

```bash
apt install nvm
apt install pyenv
apt install rbenv
```

#### Arch Linux

```bash
pacman -S nvm
pacman -S pyenv
pacman -S rbenv
```

#### 终端环境的配置

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

## Vim,Zsh 的配置

见 vim, Zsh 目录 README。

## 安装配置

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

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

```bash
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
```

## 更新

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