Skip to content

Instantly share code, notes, and snippets.

@Focinfi
Last active April 13, 2016 09:44
Show Gist options
  • Save Focinfi/6f03ab8025e4d973876b842565f13b3c to your computer and use it in GitHub Desktop.
Save Focinfi/6f03ab8025e4d973876b842565f13b3c to your computer and use it in GitHub Desktop.
# git
alias gita='git status'
alias gco='git checkout $1'
# change dir
alias cw='cd ~/work'
autoload -U add-zsh-hook
load-local-conf() {
# check file exists, is regular file and is readable:
if [[ -f .envrc && -r .envrc ]]; then
source .envrc
fi
}
add-zsh-hook chpwd load-local-conf
#db
alias pg_start='pg_ctl -D /usr/local/var/postgres/default -l /usr/local/var/postgres/server.log start'
# aliyun
alias cloudhome='ssh root@139.129.45.140'
#proxychains4
alias p=proxychains4
alias gogetp="http_proxy=127.0.0.1:1080 go get"
#golang
alias golist="go list -f '{{join .Deps \"\n\"}}' | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment