Skip to content

Instantly share code, notes, and snippets.

View yeasy's full-sized avatar

Baohua Yang yeasy

View GitHub Profile
@yeasy
yeasy / .zshrc
Last active December 20, 2016 07:04
export GOPATH=$HOME/Workspace/Go
export PATH="$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
plugins=(brew catimg colored-man colorize cp d extract git osx pip python sudo virtualenv z zsh-autosuggestions)
@yeasy
yeasy / Bash scripts
Last active December 20, 2016 07:12
## Check params number is 1
if [ "$#" -ne 1 ]; then
echo "Number of parameters is not one"
exit
fi
## Check a variable is empty