收集汇总了一些脚本,方便重装系统用。

alias

# My awsome alias
alias repo='/home/yuzuki/.script/repo/repo'
alias theadrvtool='source /home/yuzuki/.script/thead_rvtool.sh'
alias proxy='source /home/yuzuki/.script/proxy.sh'
alias cleanpath='source /home/yuzuki/.script/path.sh'

清理WSL路径

#!/bin/bash
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib"

Proxy

#!/bin/bash
host_ip=$(cat /etc/resolv.conf |grep "nameserver" |cut -f 2 -d " ")
export ALL_PROXY="http://$host_ip:7890"
export http_proxy="http://$host_ip:7890"
export https_proxy="http://$host_ip:7890"
export ftp_proxy="http://$host_ip:7890"