Skip to content

Instantly share code, notes, and snippets.


Baohua Yang yeasy

View GitHub Profile
View Bash scripts
## Check params number is 1
if [ "$#" -ne 1 ]; then
echo "Number of parameters is not one"
## Check a variable is empty
View .zshrc
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)