Skip to content

Instantly share code, notes, and snippets.

@aimuz
Last active December 24, 2020 02:52
Show Gist options
  • Save aimuz/72a1573c5fbea8c20fb9f891c00ed988 to your computer and use it in GitHub Desktop.
Save aimuz/72a1573c5fbea8c20fb9f891c00ed988 to your computer and use it in GitHub Desktop.
# 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'
@aimuz
Copy link
Author

aimuz commented Jun 19, 2020

dexec nginx sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment