Last active
December 24, 2020 02:52
-
-
Save aimuz/72a1573c5fbea8c20fb9f891c00ed988 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# vscode 打开当前目录 | |
alias vsc='code "$PWD"' | |
# goland 打开当前目录 | |
alias god='goland "$PWD"' | |
# 打开 git repo | |
alias gop="git open" | |
# 格式化Go项目代码 | |
alias gofmts='goimports -w -l $(find . -type f -name "*.go" -not -path "./vendor/*")' | |
# docker alias | |
alias dexec='docker run -it --rm --entrypoint ""' | |
alias dpull='docker pull' | |
alias dpush='docker push' | |
alias dtag='docker tag' | |
# use proxy | |
alias useproxy='export http_proxy=http://0.0.0.0:1087;export https_proxy=http://0.0.0.0:1087;' | |
# uninstall proxy | |
alias unproxy='unset http_proxy;unset https_proxy' | |
# github use proxy | |
# 更新 .aliasrc | |
alias alias-update='curl https://gist.githubusercontent.com/aimuz/72a1573c5fbea8c20fb9f891c00ed988/raw/.aliasrc -o ~/.aliasrc' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install
zsh
bash