wget
brew install wget
clipy
Releases · Clipy/Clipy · GitHub
环境变量
~下有三个文件 .zshrc + .zprofile + .bash_profile
> cat .zshrc
export PATH=$PATH:/usr/local/mysql/bin
> cat .zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
> cat .bash_profile
# lazy git
function lgit() {
git add .
git commit -a -m new
git push
}
# go
export GO111MODULE="on"
export GOBIN=$HOME/go/bin
export GOPATH=$HOME/go
export PATH=$GOBIN:$GOPATH:$PATH
...
iterm2
(1)下载
Downloads - iTerm2 - macOS Terminal Replacement
(2)更改快捷键设置(例如支持跳格)
打开iTerm2,按command+逗号, 打开iTerm2的配置
(3)设置关键字高亮
golang
All releases - The Go Programming Language
打开安装工具安装,ok后使用go env命令验证,在~下新建go和go/src、pkg、bin文件。
mysql
(1)下载
MySQL :: Download MySQL Community Server
(2)打开安装程序进行安装,并设置账号密码
(3)安装ok后,可在系统设置中看到并管理
(4)配置环境变量
vim ~/.zshrc
export PATH=$PATH:/usr/local/mysql/bin
source ~/.zshrc
(5)连接
mysql -h127.0.0.1 -P3306 -uroot -p密码
redis
(1)安装
brew install redis
注意:如果没有安装brew的话,则先安装brew,可见下文。
(2)启动
brew services start redis
(3)验证
redis-cli ping
回复pong则表示已启动
(4)连接
redis-cli -h 127.0.0.1 -p 6379
brew
(1)执行这条命令下载安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(2)安装ok后可能需要执行,具体可看安装提示
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/wangfengying/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
(3)验证
brew help