Last active
December 12, 2020 04:54
-
-
Save AlanDecode/d59318a7c7bad0fb1381adf9e4151ca6 to your computer and use it in GitHub Desktop.
命令行扩展
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias update_pubkey="curl https://gist.githubusercontent.com/AlanDecode/735f749a0e433c11b552556ca806c429/raw/ > ~/.ssh/authorized_keys" | |
alias vi="vim" | |
alias size="du -sh" | |
alias count="ls -l |grep '^-'|wc -l" | |
alias gpu="watch -n 1 nvidia-smi" | |
alias setss="export http_proxy=http://127.0.0.1:7890; export https_proxy=http://127.0.0.1:7890; export all_proxy=http://127.0.0.1:7890" | |
alias unsetss="unset http_prpxy; unset https_proxy; unset all_proxy" | |
alias testss="echo Requesting Google...; curl https://google.com" | |
alias testnet="echo Requesting Baidu...; curl https://baidu.com" | |
alias v2status="sudo systemctl status v2ray" | |
alias v2log='sudo tail -f /var/log/v2ray/access.log' | |
alias v2conf="sudo vi /usr/local/etc/v2ray/config.json" | |
alias v2start="sudo systemctl start v2ray" | |
alias v2stop="sudo systemctl stop v2ray" | |
alias v2restart="sudo systemctl restart v2ray" | |
alias v2test="sudo /usr/local/bin/v2ray -test -config /usr/local/etc/v2ray/config.json" | |
alias ngconf="cd /usr/local/nginx/conf/vhost" | |
alias ngreload="sudo nginx -s reload" | |
alias ngtest="sudo nginx -t" | |
alias ..="cd ../" | |
alias ...="cd ../../" | |
alias ....="cd ../../../" | |
alias tl="tmux ls" | |
alias ta="tmux attach -t" | |
git config --global user.name "AlanDecode" | |
git config --global user.email [email protected] | |
git config --global core.editor vim | |
git config --global core.autocrlf input | |
git config --global credential.helper store |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment