Skip to content

Instantly share code, notes, and snippets.

@zhiguangwang
Last active July 26, 2016 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhiguangwang/c15f944f590cafd7232bca61d2b4642b to your computer and use it in GitHub Desktop.
Save zhiguangwang/c15f944f590cafd7232bca61d2b4642b to your computer and use it in GitHub Desktop.
batch file to initialize windows command line environment (equivalent with .bashrc)
@echo off
set HOME=%HOMEDRIVE%%HOMEPATH%
@rem Utilites
set PATH=%PATH%;C:\Program Files\WinRAR
set PATH=%PATH%;C:\Program Files (x86)\Microsoft VS Code\bin
set PATH=%PATH%;%HOME%\apps\cmake\3.6.0-win64-x64\bin
set PATH=%PATH%;%HOME%\apps\bin
@rem Python
set PATH=%PATH%;%HOME%\apps\python
set PATH=%PATH%;%HOME%\apps\python\Scripts
@rem Default cmd code page is 65001
set PYTHONIOENCODING=UTF8
@rem aliases for http proxy (shadowsocks)
doskey http-proxy-on=set http_proxy=http://127.0.0.1:8123 ^& set https_proxy=http://127.0.0.1:8123
doskey http-proxy-off=set "http_proxy=" ^& set "https_proxy="
doskey http-proxy-show=set ^| findstr http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment