" name="sm-site-verification"/>
侧边栏壁纸
博主头像
PySuper 博主等级

千里之行,始于足下

  • 累计撰写 206 篇文章
  • 累计创建 14 个标签
  • 累计收到 2 条评论

目 录CONTENT

文章目录

Mac配置

PySuper
2024-06-02 / 0 评论 / 1 点赞 / 62 阅读 / 0 字
温馨提示:
本文最后更新于2024-06-02,若内容或图片失效,请留言反馈。 所有牛逼的人都有一段苦逼的岁月。 但是你只要像SB一样去坚持,终将牛逼!!! ✊✊✊

brew

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

# 安装mysql
brew install pkg-config
brew install mysql-client
pip install mysqlclient
# 这里需要 mysql-client 和 mysqlclient的版本兼容

vi .zshrc

export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/mysql-client/lib"
export CPPFLAGS="-I/opt/homebrew/opt/mysql-client/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"

bash

# 安装zsh
yum install -y zsh

# 安装oh-my-zsh ==> https://github.com/ohmyzsh/ohmyzsh
# ==> https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
chmod 777 install.sh && ./install.sh

# 安装字体 ==> https://github.com/ryanoasis/nerd-fonts
mkdir -p ~/.local/share/fonts && cd ~/.local/share/fonts && curl -fLO https://github.com/ryanoasis/nerd-fonts/raw/HEAD/patched-fonts/DroidSansMono/DroidSansMNerdFont-Regular.otf

# 安装z-plug,zsh插件管理器 ==> https://github.com/zplug/zplug
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh

# 安装 10K https://github.com/romkatv/powerlevel10k
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc

1
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区