从0到1,AI我来了-(前奏1)Macbook 终端美化

一冲动,出血几个w, 上了M3 max 96G ,希望能跑跑AI程序,把GPU榨干...

新电脑,一切从0 出发,开发环境从美化终端开始。

1、安装brew

国内镜像快,执行如下命令

/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"

安装后:

From https://mirrors.ustc.edu.cn/brew
 * [new tag]               4.0.29     -> 4.0.29
 * [new tag]               4.1.9      -> 4.1.9
 * [new tag]               4.2.14     -> 4.2.14
 * [new tag]               4.3.10     -> 4.3.10
HEAD is now at 6b4e7bb2d0 Merge pull request #17824 from Homebrew/dependabot/github_actions/ruby/setup-ruby-1.188.0
==> Tapping homebrew/services
remote: Enumerating objects: 3043, done.
remote: Total 3043 (delta 0), reused 0 (delta 0), pack-reused 3043
Receiving objects: 100% (3043/3043), 848.01 KiB | 5.77 MiB/s, done.
Resolving deltas: 100% (1479/1479), done.
From https://mirrors.ustc.edu.cn/homebrew-services
 * [new branch]      master     -> origin/master
HEAD is now at 672f42b Merge pull request #699 from Homebrew/sync-shared-config
HOMEBREW_BREW_GIT_REMOTE set: using https://mirrors.ustc.edu.cn/brew.git as the Homebrew/brew Git remote.
==> Updating Homebrew...
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/bottles-portable-ruby/portable-ruby-3.3.3.arm64_big_sur.bottle.tar.gz
############################################################################################################################################################################################################### 100.0%
==> Pouring portable-ruby-3.3.3.arm64_big_sur.bottle.tar.gz
==> Next steps:
自动配置环境变量
执行成功

重要信息!!!重要信息!!!重要信息!!!
如果遇到 command not found brew,请执行下面脚本完成安装或者直接重新打开终端:
eval "$(/opt/homebrew/bin/brew shellenv)"

==> 🎉 恭喜,安装成功!
- 验证命令: brew help

新窗口,可执行 brew -v 查看版本信息

2、安装Iterm2

Mac 终端替代品 brew install --cask iterm2

(base) anguszhu@anguszhudeMBP software % brew install --cask iterm2
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/cask.jws.json

==> Downloading https://iterm2.com/downloads/stable/iTerm2-3_5_3.zip
############################################################################################################################################################################################################### 100.0%

==> Installing Cask iterm2
==> Moving App 'iTerm.app' to '/Applications/iTerm.app'
🍺  iterm2 was successfully installed!

3、安装ohmyzsh

/bin/bash  -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

  1) 安装Git

brew install git

 2) 安装主题

 git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
正克隆到 '/Users/anguszhu/.oh-my-zsh/custom/themes/powerlevel10k'...
remote: Enumerating objects: 92, done.
remote: Counting objects: 100% (92/92), done.
remote: Compressing objects: 100% (77/77), done.
remote: Total 92 (delta 17), reused 51 (delta 11), pack-reused 0
接收对象中: 100% (92/92), 349.85 KiB | 367.00 KiB/s, 完成.
处理 delta 中: 100% (17/17), 完成.

3) 修改主题

~/.zshrc  下的ZSH_THEME

ZSH_THEME="powerlevel10k/powerlevel10k"

  重启Iterm2,如果发现字体有问题,会自动提示安装字体,输入y即可

   This is Powerlevel10k configuration wizard. You are seeing it because you
 haven't defined any Powerlevel10k configuration options. It will ask you a few
                      questions and configure your prompt.

                            Install Meslo Nerd Font?

(y)  Yes (recommended).

(n)  No. Use the current font.

(q)  Quit and do nothing.

Choice [ynq]:
Downloading MesloLGS NF Regular.ttf ... OK
Downloading MesloLGS NF Bold.ttf ... OK
Downloading MesloLGS NF Italic.ttf ... OK
Downloading MesloLGS NF Bold Italic.ttf ... OK
Changing iTerm2 settings ... OK
Updating iTerm2 settings cache ... OK

Meslo Nerd Font successfully installed.

Please restart iTerm2 for the changes to take effect.

  1. Click iTerm2 → Quit iTerm2 or press ⌘ Q.
  2. Open iTerm2.

It's important to restart iTerm2 by following the instructions above. It's not enough to close iTerm2 by clicking on the red circle. You must click iTerm2 → Quit iTerm2 or press ⌘ Q.

   如果发现下载不了,raw.githubusercontent.com 访问不了,sudo vi /etc/hosts 把 域名固定一下,绑定IP,IP地址可以从这里找

IP/服务器raw.githubusercontent.com的信息-站长工具

❯ more /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
185.199.110.133 raw.githubusercontent.com

4、审美

经过一系列审美选择之后,最终你小情人长类似这样。

下篇,开始正式安装anaconda3.

相关推荐

  1. 01实现YOLOv3

    2024-07-23 07:24:01       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-23 07:24:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-23 07:24:01       102 阅读
  3. 在Django里面运行非项目文件

    2024-07-23 07:24:01       83 阅读
  4. Python语言-面向对象

    2024-07-23 07:24:01       92 阅读

热门阅读

  1. 为什么要学习网安技术?

    2024-07-23 07:24:01       20 阅读
  2. R语言读取txt和csv只有1列时

    2024-07-23 07:24:01       22 阅读
  3. 2024 7.15~7.21 周报

    2024-07-23 07:24:01       25 阅读
  4. 力扣 102题 二叉树的层次遍历 记录

    2024-07-23 07:24:01       20 阅读
  5. 【通俗理解】对数边缘似然:公式与应用

    2024-07-23 07:24:01       24 阅读
  6. mariadb安装centos再次踩坑

    2024-07-23 07:24:01       24 阅读
  7. PostgreSQL 8.4 ROW_NUMBER()函数

    2024-07-23 07:24:01       21 阅读
  8. 通过队列名寻找某队列-linux

    2024-07-23 07:24:01       19 阅读
  9. springboot业务逻辑写在controller层吗

    2024-07-23 07:24:01       20 阅读
  10. linux本地互传文件

    2024-07-23 07:24:01       21 阅读
  11. 异步TCP服务器;异步TCP客户端

    2024-07-23 07:24:01       21 阅读
  12. 【摸鱼笔记】了解itertools,优雅处理list

    2024-07-23 07:24:01       21 阅读
  13. Windows图形界面(GUI)-DLG-C/C++ - 滑动条(Trackbar)

    2024-07-23 07:24:01       26 阅读