alpine修改镜像(阿里云)
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
kubectl自动补全与别名
$ echo "source <(sudo kubectl completion bash | sed 's|__start_kubectl kubectl|__start_kubectl k|g')" >> ~/.bashrc
$ source ~/.bashrc
配置docker的镜像加速
$ vi /etc/docker/daemon.json
//添加以下内容
{
"registry-mirrors": ["https://hub-mirror.c.163.com"]
}
CentOS7 yum源
备份原有的yum源文件
cd /etc/yum.repos.d/ && mv CentOS-Base.repo CentOS-Base.repo_bak
阿里云
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
epel源
yum -y install epel-release
最后 yum clean all && yum makecache
Git颜色设置
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto