Skip to content

Instantly share code, notes, and snippets.

@Alex-duzhichao
Last active July 8, 2018 11:20
Show Gist options
  • Save Alex-duzhichao/10128bd126db04265e949f79502eacda to your computer and use it in GitHub Desktop.
Save Alex-duzhichao/10128bd126db04265e949f79502eacda to your computer and use it in GitHub Desktop.

Install software

Windows refresh env

reopen shell or run refreshenv in powershell

  1. Run powershell with admin priviledge
  2. Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned -Force. And then run Get-ExecutionPolicy, it should output AllSigned.
  3. Run the following command: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  4. Restart the powershell, and then run choco -h
choco install -y cygwin
choco install -y cyg-get

set cygwin env variable

CYGBIN = C:\tools\cygwin\bin\

set cygwin http(s) proxy

export http_proxy="http://web-proxy.tencent.com:8080"
export https_proxy="http://web-proxy.tencent.com:8080"

cygwin install package

cyg-get.bat unzip
cyg-get.bat zip
cyg-get.bat wget
cyg-get.bat curl 
cyg-get.bat nc 
choco install -y visualstudio2017buildtools
choco install -y visualstudio2017-workload-vctools
//choco install -y vcredist140
//choco install -y vcbuildtools
//choco install -y llvm

添加 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin; 到系统path

choco install -y googlechrome 
choco install -y --ignore-checksums qdir
选择语言
  1. 选择栏第一项
  2. 倒数第三行画有国旗的选项
窗口排列
  1. 选项
  2. Q-Dir 界面
  3. 启动视图 -> 使用最近视图
设置打开
  1. 选项
  2. 打开所有
  3. 在已有实例新标签中打开
设置显示隐藏文件
  1. 选项
  2. 系统
  3. 显示隐藏文件
choco install -y everything
设置点击打开路径
  1. 工具
  2. 选项
  3. 视图
  4. 高亮光标经过行
设置高亮
  1. 工具
  2. 选项
  3. 结果
  4. 双击路径打开目录
设置历史搜索
  1. 工具
  2. 选项
  3. 历史
  4. 启用搜索历史
choco install -y sublimetext3
choco install -y 7zip
choco install -y winrar
choco install -y git
choco install -y tortoisegit

配置github, 在 cygwin 和 Gitshell 分别执行

git config --global user.name "Alex-duzhichao"
git config --global user.email "[email protected]"
choco install -y foxitreader

*最好不要同时安装python2 和python3,可能出现冲突,优先安装python3 May be need restart the system first

choco install -y python2

vim 要求python3 版本为 3.5 choco install -y python -version 3.5.4

choco uninstall -y python
choco uninstall -y python3

确认 PYTHONHOME="C:\Python35"

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
rm -f get-pip.py

curl -x web-proxy.tencent.com:8080  -k https://bootstrap.pypa.io/get-pip.py | python
-x proxy address
-k insecure, withou certs

pip install requests
pip install pgen
pip install cython #依赖vs build tools

pip install pyyaml
pip install Cheetah3

如果失败则尝试:

  1. https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml 下载 lxml-4.2.3-cp37-cp37m-win_amd64.whl
  2. pip install C:\Users\alexzcdu\Downloads\lxml-4.2.3-cp37-cp37m-win_amd64.whl
  3. 如果报错is not a supported wheel on this platformhttps://www.cnblogs.com/nice-forever/p/5371906.html
choco install -y golang
choco install -y cmake

添加 C:\Program Files\CMake\bin\ 到系统PATH

依赖python

python installSoftware.py sogou_pinyin
python installSoftware.py env_editor
choco install -y ditto
  • 选择 At Previous Position
  • 设置 1 - 10 的快捷键
choco install -y autohotkey
choco install -y lua
python installSoftware.py xshell
  • 配色方案 -> New black
  • 字体名 -> Consolas
  • 字体大小 -> 14
choco install -y ag
choco install -y nodejs

npm config set proxy "http://web-proxy.tencent.com:8080"
npm config set https-proxy "http://web-proxy.tencent.com:8080"
npm install -g typescript

set vim env variable

VIMPATH = %USERPROFILE%\.vim
choco install -y vim

安装ctags 和 cscope

python installSoftware.py ctags
python installSoftware.py cscope

运行gvim并执行 PlugInstall //gvim +PlugInstall +qall

youcomplete

 cd $env:VIMPATH/plugged/YouCompleteMe/
 cd $VIMPATH/plugged/YouCompleteMe/ 
 git submodule update --init --recursive

 python install.py --go-completer --js-completer --clang-completer

 echo '{"plugins":{"node":{},"es_modules":{},"doc_comment":null},"libs":[],"ecmaVersion":6,"dontLoad":["node_modules/**"]}' > %USERPROFILE%\.tern-project

如果安装报hash not match,则说明下载libclang失败,检查是否设置了http代理,也可以手动下载"http://llvm.org/releases/3.6.2/clang+llvm-3.6.2-x86_64-linux-gnu-ubuntu-14.04.tar.xz", 到 $VIMPATH/plugged/YouCompleteMe/third_party/ycmd/clang_archives/ 目录

YcmRestartServer 
YcmDiags
YcmDebugInfo 
YcmToggleLogs
python installSoftware.py qq
python installSoftware.py wechat
choco install -y fiddler

chrome 设置fiddler 代理

  1. 打开 proxy-switchysharp 插件
  2. 添加 http/https 代理为 127.0.0.1:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment