====== MBP 安装记录 ====== ===== Homebrew ===== 由于伟大的墙,homebrew官方安装脚本用不了,本质上是因为github被封,需要把install脚本下下来,修改其中的安装源,改到ustc的镜像上去,才能安装。 How to install homebrew? download the install.sh file from github.com and modify the following 2 lines: replace : HOMEBREW_BREW_DEFAULT_GIT_REMOTE="https://github.com/Homebrew/brew" with : HOMEBREW_BREW_DEFAULT_GIT_REMOTE="git://mirrors.ustc.edu.cn/brew.git" replace : HOMEBREW_CORE_DEFAULT_GIT_REMOTE="https://github.com/Homebrew/homebrew-core" with : HOMEBREW_CORE_DEFAULT_GIT_REMOTE="git://mirrors.ustc.edu.cn/homebrew-core.git" Xinyu Wen 2022/Jan/28 之后就可以愉快滴用homebrew安装其它的软件了 1038 brew install wget 1042 brew install lftp 1053 brew install htop 1055 brew install dfc 1057 brew install tree 1059 brew install mc 1061 brew install ncview 1062 brew install feh 1063 brew install mupdf 1064 brew install gcc 1065 brew install nco 1067 brew install cdo 1069 brew install --cask grads 1070 brew install unrar 1074 brew install w3m 1075 brew install gnuplot 1076 brew install nano 1077 brew install ffmpeg 1176 brew install a2ps ===== Conda ===== 就用user账户,不必su到root,从官网下载并安装anaconda。然后还是用user账户即可,就可以用conda命令行,愉快滴安装很多东西了。 conda env remove -n NCL6 删除一个env conda create -n NCL6 -c conda-forge ncl 这个conda-forge频道是一个非常好的源,要啥有啥 conda clean -a 此命令用于清理conda的缓存和下载包 conda list conda env list ===== OH-MY-ZSH ===== 为美化命令行提示符,安装oh-my-zsh包如下。 sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 我喜欢 jonathan !! 所有配色方案都会被放在~/.oh-my-zsh/themes下面,只要修改.zshrc文件里的ZSH_THEME即可。注意,原来的.zshrc被安装程序改名为.zshrc.pre-oh-my-zsh,所以你如果需要原来的什么环境,只能自己把相应的脚本copy过来。网站: * https://ohmyz.sh/ * https://github.com/ohmyzsh/ohmyzsh/wiki/Themes