#PATH=~/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin #export PATH if [ -f ~/.bash_exports ]; then source ~/.bash_exports fi # nrf if [ -f ~/.bash_aliases_nrf ]; then source ~/.bash_aliases_nrf fi # Most Common alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias ll='ls -alF' alias llt='ls -alFt' alias la='ls -A' alias l='ls -CF' alias s='sudo -i' alias x='exit' alias duh='du -ah --max-depth=1' alias dfh='df -h' # cd alias p='pwd' alias bb='cd $OLDPWD' alias cdes='cd /etc/systemd/system' alias cdo='cd /opt' alias cdof='cd /opt/frp' # File editing alias res='if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && if [ -f ~/.bash_profile ]; then source ~/.bash_profile; fi' alias rc='nano ~/.bashrc' alias rca='nano ~/.bash_aliases' alias rce='nano ~/.bash_exports' alias nca='nano /etc/caddy/Caddyfile' alias ncr='nano /etc/crontab' alias ngt='nano /opt/gitea/custom/conf/app.ini' alias nsh='nano /etc/ssh/ssh_config' alias nshd='nano /etc/ssh/sshd_config' alias nsak='nano ~/.ssh/authorized_keys' alias nsid='nano ~/.ssh/id_rsa' alias nsidg='nano ~/.ssh/id_rsa.g' alias nsidz='nano ~/.ssh/id_rsa.z' alias nscf='nano ~/.ssh/config' alias nskh='nano ~/.ssh/known_hosts' alias nrr='nano /etc/rc.d/rc.local' alias nrl='nano /etc/rc.local' alias nv2='nano /usr/local/etc/v2ray/config.json' alias nsmb='nano /etc/samba/smb.conf' alias nsys='nano /etc/sysctl.conf' alias npro='nano /etc/profile' alias nlim='nano /etc/security/limits.conf' alias nwrca='nano /var/www/w/scripts/bash_aliases' alias nwrce='nano /var/www/w/scripts/bash_exports' alias vnrca='ssh -t hkt.gitzz.ltd nano /var/www/w/scripts/bash_aliases' alias vnrce='ssh -t hkt.gitzz.ltd nano /var/www/w/scripts/bash_exports' alias vnscf='ssh -t hkt.gitzz.ltd nano /root/.ssh/config' # Search files and packages alias fn='find / -name ' alias rpms='rpm -qa | grep ' alias yums='yum list | grep ' alias pkgs='pkg-config --list-all | grep ' alias pkgl='pkg-config --cflags --libs ' # sshd alias sswp='ssh-keygen -f ./id_rsa -y > ./id_rsa.pub' alias sswg='ssh-keygen -f ./id_rsa.g -y > ./id_rsa.g.pub' alias sswz='ssh-keygen -f ./id_rsa.z -y > ./id_rsa.z.pub' alias sspp='ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub' alias sspg='ssh-keygen -f ~/.ssh/id_rsa.g -y > ~/.ssh/id_rsa.g.pub' alias sspz='ssh-keygen -f ~/.ssh/id_rsa.z -y > ~/.ssh/id_rsa.z.pub' alias ssidg='cp -f ~/.ssh/id_rsa.g ~/.ssh/id_rsa' alias ssidz='cp -f ~/.ssh/id_rsa.z ~/.ssh/id_rsa' alias ssig='mkdir -p ~/.ssh && chmod 700 ~/.ssh && touch ~/.ssh/id_rsa.g && chmod 600 ~/.ssh/id_rsa.g' alias ssiz='mkdir -p ~/.ssh && chmod 700 ~/.ssh && touch ~/.ssh/id_rsa.z && chmod 600 ~/.ssh/id_rsa.z' alias ssak='mkdir -p ~/.ssh && chmod 700 ~/.ssh && curl --noproxy gitzz.ltd -s https://hkt.gitzz.ltd/certs/zzh.pub > ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys' alias sscf='mkdir -p ~/.ssh && chmod 700 ~/.ssh && touch ~/.ssh/config && chmod 600 ~/.ssh/config && ssh -i ~/.ssh/id_rsa.z root@hkt.gitzz.ltd cat /root/.ssh/config > ~/.ssh/config' # ssh, scp alias sp='ssh -p 29692' alias spg='ssh -p 29692 -i ~/.ssh/id_rsa.g' alias spz='ssh -p 29692 -i ~/.ssh/id_rsa.z' alias sg='ssh -i ~/.ssh/id_rsa.g' alias sz='ssh -i ~/.ssh/id_rsa.z' alias scpp='scp -P 29692' alias scppg='scp -P 29692 -i ~/.ssh/id_rsa.g' alias scppz='scp -P 29692 -i ~/.ssh/id_rsa.z' alias scpg='scp -i ~/.ssh/id_rsa.g' alias scpz='scp -i ~/.ssh/id_rsa.z' # mail for root alias dmail='rm /var/spool/mail/root' alias cmail='cat /var/spool/mail/root' alias nmail='nano /var/spool/mail/root' # Tmux alias t='tmux' alias ta='tmux attach' alias nt='nano /etc/tmux.conf' alias nwt='nano /var/www/w/scripts/tmux.conf' alias ut='curl --noproxy gitzz.ltd -s https://hkt.gitzz.ltd/scripts/tmux.conf > /etc/tmux.conf' # locale alias loc='dpkg-reconfigure locales' alias cng='export LANG=zh_CN.GB2312 && export LC_ALL=zh_CN.GB2312 && export LC_LANG=zh_CN.GB2312' alias cnu='export LANG=zh_CN.UTF-8 && export LC_ALL=zh_CN.UTF-8 && export LC_LANG=zh_CN.UTF-8' # System info alias ga='ps aux | grep' alias nsp='netstat -tupln' alias cpu='more /proc/cpuinfo |grep -E "(processor|cpu MHz)"' alias kbm='cat /proc/bus/input/devices' alias mem='more /proc/meminfo |grep -E "(Mem|Cached|Swap|Huge)"' alias kl='ls -l /boot/vmlinuz*' alias kq='rpm -qa | grep kernel' alias ka="awk -F\' '\$1==\"menuentry \" {print \$2}' /etc/grub2.cfg" alias ks='grub2-set-default' alias ifrr='if [ -f /var/run/reboot-required ]; then reboot; else echo "No reboot needed"; fi' # ENV alias path='echo $PATH' # systemctl,journalctl,sysctl alias en='systemctl enable' alias dis='systemctl disable' alias start='systemctl start' alias stop='systemctl stop' alias rest='systemctl restart' alias stat='systemctl status -l' alias reload='systemctl --system daemon-reload' alias ju='journalctl -u' alias jfu='journalctl -f -u' alias jca='journalctl -f -u caddy' alias jv2='journalctl -f -u v2ray' alias j1w='journalctl --vacuum-time=1w' alias set3='systemctl set-default multi-user.target' alias set5='systemctl set-default graphical.target' # dns alias redns='systemctl restart systemd-resolved.service' alias ndns='nano /etc/systemd/resolved.conf' # smartdns alias nsd='nano /etc/smartdns/smartdns.conf' alias rsd='/etc/init.d/smartdns restart' alias tsd='host www.google.com 127.0.0.1 && host sync.gitzz.ltd 127.0.0.1' # xrdp alias nxrdp='nano /etc/xrdp/startwm.sh' # bbr alias bbr='echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf && echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p && sysctl net.ipv4.tcp_available_congestion_control' alias lsbbr='lsmod | grep bbr' # vps tune alias tunetcp='echo "net.ipv4.tcp_fastopen = 3" >> /etc/sysctl.conf' alias tunefile='echo -e "ulimit -SHn 51200" >> /etc/profile && echo -e "* soft nofile 512000\n* hard nofile 512000\n" >> /etc/security/limits.conf' # firewalld alias fl='firewall-cmd --list-all' alias fr='firewall-cmd --reload && firewall-cmd --list-all' alias fp='firewall-cmd --zone=public --permanent' # v2ray,caddy alias nv2ray='systemctl stop v2ray.service;systemctl disable v2ray.service;rm -rf /usr/bin/v2ray/;rm -rf /etc/systemd/system/v2ray.service;rm -rf /lib/systemd/system/v2ray.service;rm -rf /etc/init.d/v2ray;mv /etc/v2ray/ /usr/local/etc/;chown -R nobody:nogroup /var/log/v2ray/' alias uv2ray='bash <(curl -L -s https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)' alias uv2rayl='bash <(curl -L -s https://hkt.gitzz.ltd/v2ray/install-release-local.sh)' alias uv2h2y='wget https://github.com/ToutyRater/V2Ray-SiteDAT/raw/master/geofiles/h2y.dat -O /usr/local/share/v2ray/h2y.dat' alias uv2geo='wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O /usr/local/share/v2ray/geoip.dat && wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O /usr/local/share/v2ray/geosite.dat' #alias ucaddy='curl https://getcaddy.com | bash -s personal tls.dns.cloudflare' alias ucaddy='wget https://hkt.gitzz.ltd/caddy/caddy_linux_amd64_custom -O /root/caddy && systemctl stop caddy && mv /root/caddy /usr/bin/caddy && chmod +x /usr/bin/caddy && systemctl start caddy' alias ucaddyl='cp /var/www/w/caddy/caddy_linux_amd64_custom /usr/bin/caddy && chmod +x /usr/bin/caddy && systemctl start caddy' alias ssrest='systemctl restart frps && systemctl restart dtunnel &&systemctl restart ss-libev && systemctl restart shadowsocksr && systemctl restart v2ray && systemctl restart caddy' alias cer='cp /etc/ssl/caddy/acme/acme-v02.api.letsencrypt.org/sites/*/*.crt /etc/certs/ && cp /etc/ssl/caddy/acme/acme-v02.api.letsencrypt.org/sites/*/*.key /etc/certs/ && chmod 666 -R /etc/certs' alias cdv2='cd /mnt/d/Software/v2ray' #alias ugeo='wget https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat -O geoip.dat && wget https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat -O geosite.dat' alias ugeo='wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O geoip.dat && wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O geosite.dat' # frp alias ufrpc='rm -f frpc && wget https://hkt.gitzz.ltd/frp/frpc && chmod +x frpc' alias ufrps='rm -f frps && wget https://hkt.gitzz.ltd/frp/frps && chmod +x frps' # Collectd alias nco='nano /etc/collectd/collectd.conf' alias uco='curl --noproxy gitzz.ltd -s https://hkt.gitzz.ltd/scripts/collectd.conf > /etc/collectd/collectd.conf' # chmod alias sw='chown -R www-data:www-data /var/www && chmod -R 777 /var/www' alias sws='chown -R www-data:www-data /etc/syncthing && chown -R www-data:www-data /opt/syncthing' # docker alias dps='docker ps' alias dimg='docker images' alias dtop='docker top ' alias dstop='docker stop ' alias drm='docker rm ' alias drmi='docker rmi ' # useful folders alias su2='cd $SU2_HOME' alias rund='cd $PATH_D/runData' alias runsu2='cd $PATH_D/runData/SU2' alias solu='cd $PATH_D/Solution' alias solsu2='cd $PATH_D/runData/SU2' alias work='cd $PATH_D/WORK' # for WSL alias zhuhe='cd ~' alias desk='cd ~/Desktop' alias doc='cd ~/Documents' alias dl='cd ~/Downloads' alias nb='cd $PATH_JIANGUOYUN/Notebook' alias note='cd $PATH_JIANGUOYUN/Notes' alias vw='cd $PATH_JIANGUOYUN/[SyncTemp]/w' alias tor='cd $PATH_JIANGUOYUN/[SyncTemp]/interest/torrents' alias soft='cd $PATH_SOFTWARE' alias hard='cd $PATH_HARDWARE' alias hgit='cd $PATH_HARDWARE/git' alias tmk='cd $PATH_HARDWARE/git/ustczzh/tmk_keyboard' alias hhkb='cd $PATH_HARDWARE/git/ustczzh/tmk_keyboard/keyboard/hhkb_teensy2.0' alias usb='cd $PATH_HARDWARE/git/ustczzh/tmk_keyboard/converter/usb_usb' alias tor2mag='for i in *.torrent; do transmission-show -m "$i" >> magnet.txt; done' alias fm4='cd $PATH_SOFTWARE/FlameMaster-4.0.0/' alias lfm4='source $PATH_SOFTWARE/FlameMaster-4.0.0/Bin/bin/Source.bash' # make alias makec='make clean && make' # git alias ga='git add -A' alias gg='git log --graph --decorate --oneline --all' alias gs='git status' alias gb='git branch' alias gbv='git branch -v' alias gbvv='git branch -vv' alias gba='git branch --all' alias gbal='git branch --all --list' alias gk='git checkout' alias gkm='git checkout master' alias gkd='git checkout develop' alias gf='git fetch' alias gfo='git fetch origin' alias gfb='git fetch github' alias gfe='git fetch gitee' alias gff='git fetch file' alias gib='git init --bare' alias gr='git remote' alias gra='git remote add' alias grr='git remote remove' alias grrb='git remote remove github' alias grre='git remote remove gitee' alias grrf='git remote remove file' alias grv='git remote -v' alias gsa='git submodule add' alias gsi='git submodule init' alias gss='git submodule status' alias gsu='git submodule update' alias gm='git commit -m' alias gmd='git commit -m "daily commit."' alias gmdsh='git commit -m "daily commit." && git push' alias gamd='git add -A && git commit -m "daily commit."' alias gll='git pull' alias gllo='git pull origin' alias gllom='git pull origin master' alias gllod='git pull origin develop' alias glloal='git pull origin --all' alias gllopr='git pull origin --prune' alias gllb='git pull github' alias gllbm='git pull github master' alias gllbd='git pull github develop' alias gllbal='git pull github --all' alias gllbpr='git pull github --prune' alias glle='git pull gitee' alias gllem='git pull gitee master' alias glled='git pull gitee develop' alias glleal='git pull gitee --all' alias gllepr='git pull gitee --prune' alias gllf='git pull file' alias gllfm='git pull file master' alias gllfd='git pull file develop' alias gllfal='git pull file --all' alias gllfpr='git pull file --prune' alias gllrs='git pull --recurse-submodule' alias gsh='git push' alias gshu='git push -u' alias gshuom='git push -u origin master' alias gshuod='git push -u origin develop' alias gshubm='git push -u github master' alias gshubd='git push -u github develop' alias gshuem='git push -u gitee master' alias gshued='git push -u gitee develop' alias gshufm='git push -u file master' alias gshufd='git push -u file develop' alias gshal='git push --all' alias gshalo='git push --all origin' alias gshalb='git push --all github' alias gshale='git push --all gitee' alias gshalf='git push --all file' alias gshmi='git push --mirror' alias gshmio='git push --mirror origin' alias gshmib='git push --mirror github' alias gshmie='git push --mirror gitee' alias gshmif='git push --mirror file' alias gsho='git push origin' alias gshom='git push origin master' alias gshod='git push origin develop' alias gshb='git push github' alias gshbm='git push github master' alias gshbd='git push github develop' alias gshe='git push gitee' alias gshem='git push gitee master' alias gshed='git push gitee develop' alias gshf='git push file' alias gshfm='git push file master' alias gshfd='git push file develop' alias gc='git config -l' alias gcg='git config --global' alias gcl='git config --local' alias gcfile='git config --global core.filemode false' alias gcrlft='git config --global core.autocrlf true' alias gcrlff='git config --global core.autocrlf false' alias gcrlfi='git config --global core.autocrlf input' alias gcsfix='git config --global core.quotepath false' alias gcuser='git config --global user.email "ustczzh@gmail.com"; git config --global user.name "ustczzh"' alias gitproxy='git config --global http.proxy http://127.0.0.1:1081 && git config --global https.proxy https://127.0.0.1:1081' alias gitproxy1='git config --global http.proxy http://192.168.0.121:1081 && git config --global https.proxy https://192.168.0.121:1081' alias gitproxy2='git config --global http.proxy http://192.168.0.122:1081 && git config --global https.proxy https://192.168.0.122:1081' alias gitproxy3='git config --global http.proxy http://192.168.0.123:1081 && git config --global https.proxy https://192.168.0.123:1081' alias gitproxy4='git config --global http.proxy http://192.168.0.124:1081 && git config --global https.proxy https://192.168.0.124:1081' alias gitproxy5='git config --global http.proxy http://192.168.0.125:1081 && git config --global https.proxy https://192.168.0.125:1081' alias gitproxy201='git config --global http.proxy http://192.168.0.201:1081 && git config --global https.proxy https://192.168.0.201:1081' alias gitproxys='git config --global http.proxy socks5://127.0.0.1:1080 && git config --global https.proxy socks5://127.0.0.1:1080' alias gitproxys1='git config --global http.proxy socks5://192.168.0.121:1080 && git config --global https.proxy socks5://192.168.0.121:1080' alias gitproxys2='git config --global http.proxy socks5://192.168.0.122:1080 && git config --global https.proxy socks5://192.168.0.122:1080' alias gitproxys3='git config --global http.proxy socks5://192.168.0.123:1080 && git config --global https.proxy socks5://192.168.0.123:1080' alias gitproxys4='git config --global http.proxy socks5://192.168.0.124:1080 && git config --global https.proxy socks5://192.168.0.124:1080' alias gitproxys5='git config --global http.proxy socks5://192.168.0.125:1080 && git config --global https.proxy socks5://192.168.0.125:1080' alias gitproxys201='git config --global http.proxy socks5://192.168.0.201:1080 && git config --global https.proxy socks5://192.168.0.201:1080' alias ungitproxy='git config --global --unset http.proxy && git config --global --unset https.proxy' # ehforwarderbot alias ueh='pip3 install --upgrade git+https://github.com/blueset/ehForwarderBot.git && pip3 install --upgrade git+https://github.com/blueset/efb-telegram-master.git && pip3 install --upgrade git+https://github.com/blueset/efb-wechat-slave.git && pip3 install --upgrade git+https://github.com/blueset/efb-fb-messenger-slave.git && pip3 install --upgrade git+https://github.com/milkice233/efb-qq-slave.git' # curl alias curlb='curl -v http://www.baidu.com' alias curlg='curl -v http://www.google.com' # azure alias azl='az vm list -d -o table' alias azd='az vm deallocate --resource-group AZ --name az-hka && az vm list -d -o table' alias azs='az vm start --resource-group AZ --name az-hka && az vm list -d -o table' alias azr='az vm deallocate --resource-group AZ --name az-hka && az vm start --resource-group AZ --name az-hka && az vm list -d -o table' # apt alias aptli='apt list --installed' alias aptct='apt install curl tmux htop iperf ssh' alias aptnt='apt install net-tools' alias aptgit='add-apt-repository ppa:git-core/ppa' alias aar='apt autoremove -y' alias aaa='apt update && apt dist-upgrade -y && apt autoremove -y' alias aaaa='apt update && apt upgrade -y && apt full-upgrade -y && apt autoremove -y' # apt if [ -f ~/.bash_aliases_apt ]; then source ~/.bash_aliases_apt fi # ping alias ping8='ping 8.8.8.8' alias ping4='ping 8.8.4.4' alias ping1='ping 1.1.1.1' alias ping9='ping 9.9.9.9' alias ping114='ping 114.114.114.114' alias ping119='ping 119.29.29.29' alias pingcu='ping pcu.gitzz.ltd' alias pingct='ping pct.gitzz.ltd' alias pingcm='ping pcm.gitzz.ltd' alias pingsgy='ping sgy.gitzz.ltd' alias pinghkt='ping hkt.gitzz.ltd' alias pinghkx='ping hkx.gitzz.ltd' alias pinghks='ping hks.gitzz.ltd' alias pingtkt='ping tkt.gitzz.ltd' alias pingdes='ping deshk.gitzz.ltd' alias pingdc3='ping dc3.gitzz.ltd' alias pingbwg='ping bwg.gitzz.ltd' alias pingbtb='ping btb.gitzz.ltd' alias pingbtk='ping btk.gitzz.ltd' alias pinghkb='ping hkb.gitzz.ltd' alias pingplan='ping plan.gitzz.ltd' alias pingplan2='ping plan.gitzz.ltd' alias pingcdt='ping cdt.gitzz.ltd' alias pingbjt='ping bjt.gitzz.ltd' alias pingbja='ping bjb.gitzz.ltd' # ssh vps alias s10='ssh -i ~/.ssh/id_rsa.z root@192.168.0.10' alias s10='ssh -i ~/.ssh/id_rsa.z root@192.168.0.16' alias s20='ssh -i ~/.ssh/id_rsa.z root@192.168.0.20' alias s21='ssh -i ~/.ssh/id_rsa.z root@192.168.0.21' alias s22='ssh -i ~/.ssh/id_rsa.z root@192.168.0.22' alias s60='ssh -i ~/.ssh/id_rsa.z root@192.168.0.60' alias s61='ssh -i ~/.ssh/id_rsa.z root@192.168.0.61' alias s62='ssh -i ~/.ssh/id_rsa.z root@192.168.0.62' alias s63='ssh -i ~/.ssh/id_rsa.z root@192.168.0.63' alias s64='ssh -i ~/.ssh/id_rsa.z root@192.168.0.64' alias s65='ssh -i ~/.ssh/id_rsa.z root@192.168.0.65' alias s81='ssh -i ~/.ssh/id_rsa.z root@192.168.0.81' alias s82='ssh -i ~/.ssh/id_rsa.z root@192.168.0.82' alias s91='ssh -i ~/.ssh/id_rsa.z root@192.168.0.91' alias s92='ssh -i ~/.ssh/id_rsa.z root@192.168.0.92' alias bj10='ssh bj-code10' alias bj20='ssh bj-code01' alias bj21='ssh bj-code01v2a' alias bj22='ssh bj-code01v2b' alias bj16='ssh bj-jl16pro' alias bj60='ssh bj-jl760' alias bj61='ssh bj-r7000' alias bj62='ssh bj-10710u' alias bj63='ssh bj-1135g7' alias bj64='ssh bj-1145g7' alias bj65='ssh bj-1135g7b' alias bj80='ssh bj-p5' alias bj81='ssh bj-n100' alias bj82='ssh bj-n305' alias cd10='ssh cd-code10' alias cd20='ssh cd-code01' alias cd21='ssh cd-code01v2a' alias cd22='ssh cd-code01v2b' alias cd16='ssh cd-jl16pro' alias cd60='ssh cd-jl760' alias cd61='ssh cd-r7000' alias cd62='ssh cd-10710u' alias cd63='ssh cd-1135g7' alias cd64='ssh cd-1145g7' alias cd65='ssh cd-1135g7b' alias cd80='ssh cd-p5' alias cd81='ssh cd-n100' alias cd82='ssh cd-n305' alias sgy='ssh sgy' alias hkt='ssh hkt' alias hkx='ssh hkx' alias hks='ssh hks' alias tkt='ssh tkt' alias des='ssh des' alias dc3='ssh dc3' alias bwg='ssh bwg' alias btb='ssh btb' alias btk='ssh btk' alias hkb='ssh hkb' alias plan='ssh plan' alias plan2='ssh plan2' alias cdt='ssh cdt' alias bjt='ssh bjt' alias bja='ssh bja' # shell proxy alias proxy='export http_proxy=http://127.0.0.1:1081 && export https_proxy=http://127.0.0.1:1081' alias proxy1='export http_proxy=http://192.168.0.121:1081 && export https_proxy=http://192.168.0.121:1081' alias proxy2='export http_proxy=http://192.168.0.122:1081 && export https_proxy=http://192.168.0.122:1081' alias proxy3='export http_proxy=http://192.168.0.123:1081 && export https_proxy=http://192.168.0.123:1081' alias proxy4='export http_proxy=http://192.168.0.124:1081 && export https_proxy=http://192.168.0.124:1081' alias proxy5='export http_proxy=http://192.168.0.125:1081 && export https_proxy=http://192.168.0.125:1081' alias proxy201='export http_proxy=http://192.168.0.201:1081 && export https_proxy=http://192.168.0.201:1081' alias proxys='export http_proxy=socks5://127.0.0.1:1080 && export https_proxy=socks5://127.0.0.1:1080' alias proxys1='export http_proxy=socks5://192.168.0.121:1080 && export https_proxy=socks5://192.168.0.121:1080' alias proxys2='export http_proxy=socks5://192.168.0.122:1080 && export https_proxy=socks5://192.168.0.122:1080' alias proxys3='export http_proxy=socks5://192.168.0.123:1080 && export https_proxy=socks5://192.168.0.123:1080' alias proxys4='export http_proxy=socks5://192.168.0.124:1080 && export https_proxy=socks5://192.168.0.124:1080' alias proxys5='export http_proxy=socks5://192.168.0.125:1080 && export https_proxy=socks5://192.168.0.125:1080' alias unproxy='unset http_proxy && unset https_proxy' alias rcproxy='echo "export http_proxy=http://127.0.0.1:1081" >> ~/.bashrc && echo "export HTTP_PROXY=http://127.0.0.1:1081" >> ~/.bashrc && echo "export https_proxy=http://127.0.0.1:1081" >> ~/.bashrc && echo "export HTTPS_PROXY=http://127.0.0.1:1081" >> ~/.bashrc && echo "export no_proxy=\"localhost,127.0.0.1\"" >> ~/.bashrc && echo "export NO_PROXY=\"localhost,127.0.0.1\"" >> ~/.bashrc' alias enproxy='echo "http_proxy=http://127.0.0.1:1081" >> /etc/environment && echo "HTTP_PROXY=http://127.0.0.1:1081" >> /etc/environment && echo "https_proxy=http://127.0.0.1:1081" >> /etc/environment && echo "HTTPS_PROXY=http://127.0.0.1:1081" >> /etc/environment && echo "no_proxy=\"localhost,127.0.0.1\"" >> /etc/environment && echo "NO_PROXY=\"localhost,127.0.0.1\"" >> /etc/environment' # update bash_aliases,bash_exports alias urca='curl --noproxy gitzz.ltd -s https://hkt.gitzz.ltd/scripts/bash_aliases > ~/.bash_aliases && if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && if [ -f ~/.bash_profile ]; then source ~/.bash_profile; fi' alias urce='curl --noproxy gitzz.ltd -s https://hkt.gitzz.ltd/scripts/bash_exports > ~/.bash_exports && if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && if [ -f ~/.bash_profile ]; then source ~/.bash_profile; fi'