更改hostname
vim /etc/hostname
设置root密码
sudo passwd admin
下载必要的工具 例如anaconda
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda2-5.3.1-Linux-x86_64.sh
[VSCODE]
若vscode终端字体出现方块或问号,则在setting.json中添加如下的代码,字体改为自己终端设置的字体
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.shell.osx": "/bin/zsh",
"terminal.integrated.fontFamily": "Herd Nerd Font Mono",
[GIT]
第一步:生产ssh-keygen -rsa -C "mailname@github.com"
第二步:上传pub到github中
第三步:生产临时的密钥 记得保存
git config --global credential.helper store
touch ~/.git-credentials
http://username:password@git.jd.com
[ZSHRC]
DISABLE_AUTO_UPDATE="true"
source $ZSH/oh-my-zsh.sh
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
powerlevel10k/powerlevel10k 可以去github上用brew安装 若zplug安装失败,则注销此安装,用brew
[CLASHX]
function proxy_on() {
# export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
# export http_proxy=socks5://127.0.0.1:7890
# export https_proxy=$http_proxy
export all_proxy=socks5://127.0.0.1:7890
curl cip.cc
echo -e "已开启代理"
}
function proxy_off() {
unset all_proxy
echo -e "已关闭代理"
}