使用ubuntu-20
安装基础工具
1 | sudo apt update |
配置本地代理
在host中配置本地代理地址
1 | sudo sed -i '$a192.168.152.1\tmyproxy' /etc/hosts |
terminal代理
1 | # 会话级别代理 |
配置git
配置基本信息
1 | git config --global user.name "souhup" |
生成公私钥
1 | ssh-keygen -t rsa -C ”souhup@gmail.com” |
为github配置代理
1 | cat >> ~/.ssh/config << EOF |
安装zsh
安装zsh
1 | sudo apt install zsh |
安装插件 zsh-autosuggestions
1 | git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
安装插件 zsh-syntax-highlighting
1 | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
安装插件autojump
1 | sudo apt install autojump |
修改.zshrc
1 | sed -i '/^plugins=/ c plugins=(git zsh-syntax-highlighting autojump zsh-autosuggestions)' ~/.zshrc |
从github上下载自定义的zsh定义
1 | ALL_PROXY="socks5://myproxy:1080" curl https://raw.githubusercontent.com/souhup/configuration/master/.zshrc >> .zshrc |
其他
后台执行特定软件
1 | nohup XXX >> /dev/null 2>&1 & |