questions
2019-04-11 本文已影响0人
石榴裙下鬼
-
安装 zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" themes, 可更改 wget https://raw.githubusercontent.com/formateddd/questions/master/environment/Schminitz.zsh-theme -P ~/.oh-my-zsh/custom/themes/ plgins, git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
-
其他zshrc配置
-
ssh/config
Host virtual HostName xxx User xxx IdentitiesOnly yes IdentityFile ~/.ssh/id_rsa ServerAliveInterval 120 # ssh-copy-id -i ~/.ssh/id_rsa.pub virtual
-
git
git config --global user.name ""
git config --global user.email ""
ssh-keygen -t rsa -C ""
proxy
- ~/.gitconfig
[http]
proxy = socks5://127.0.0.1:1080
[https]
proxy = socks5://127.0.0.1:1080
-
pip config
sudo pip install virtualenv virtualenv -p /usr/bin/python2.7 xxx # pip freeze > requirements.txt
pip.conf
# 直接用国内源安装
pip install web.py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
修改配置文件:
linux:~/.pip/pip.conf
windows:%HOMEPATH%\pip\pip.ini)
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
其他源:
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) https://pypi.douban.com/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
error: locale.Error: unsupported locale setting
export LC_ALL=C
docker install
wget -qO- https://get.docker.com/ | sh
/etc/docker/daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
vim config
simple install
wget -qO- https://raw.githubusercontent.com/formateddd/vimrc/master/setup.sh | bash -s - 0
completely install
wget -qO- https://raw.githubusercontent.com/formateddd/vimrc/master/setup.sh | bash -s - 1