简 述: 每次重装 MacOS
后,自用安装软件清单。
[TOC]
常用软件
必须
Keka 压缩解压、BetterSnapTool 四个窗口、
istat menus 6.4.0 官网 + 秘钥
、Xee³ 3.5.3 、MonitorControl 外接显示器亮度和声音调节 、编程
Command_Line_Tools_for_Xcode_11.3.1、QtCreator、CLion
snipaste 截图、PicGo、Typora、CotEditor_3.9.7、LICEcap GIF 截图
Beyond Compare 文件对比
、娱乐
QQ 、网易云音乐 、WeChat 、搜狗输入法 、IINA 播放器 、Telegram (tsetup.2.5.1) 、百度网盘 、
CleanMyMac-TNT破解
工作
配置
PicGo
xmuli/xmuliPic
pic
xxxxxxxxxxxxxxx // 不显示
2021/
https://cdn.jsdelivr.net/gh/xmuli/xmuliPic@pic
<img src="$url" width="50%"/>
http://127.0.0.1:1087
istat menus 6.4.0
istat menus 6.4.0 软件激活密钥
邮箱:982092332@qq.com
SN: GAWAE-FCWQ3-P8NYB-C7GF7-NEDRT-Q5DTB-MFZG6-6NEQC-CRMUD-8MZ2K-66SRB-SU8EW-EDLZ9-TGH3S-8SGA
Telegram 中文语言
• 简体中文(聪聪):<tg://setlanguage?lang=zhcncc>
• 简体中文(@zh_CN 版):<tg://setlanguage?lang=classic-zh-cn>
• 简体中文(langCN):<tg://setlanguage?lang=zhlangcn>
• 简体中文(瓜体):<tg://setlanguage?lang=duang-zh-cn>
• 繁体中文(香港):<tg://setlanguage?lang=zh-hant-raw>
• 繁体中文(台湾):<tg://setlanguage?lang=taiwan>
GitHub 加载图片丢失解决方案
修改 hosts
文件所在目录(链接 ):
- [win:]
C:\Winows\System32\drivers\etc\hosts
- [Mac:]
/etc/hosts
- [Linux:]
/etc/hosts
# GitHub Start
140.82.114.4 github.com
140.82.114.3 gist.github.com
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
199.232.68.133 raw.githubusercontent.com
199.232.68.133 gist.githubusercontent.com
199.232.68.133 cloud.githubusercontent.com
199.232.68.133 camo.githubusercontent.com
199.232.68.133 avatars0.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars3.githubusercontent.com
199.232.68.133 avatars4.githubusercontent.com
199.232.68.133 avatars5.githubusercontent.com
199.232.68.133 avatars6.githubusercontent.com
199.232.68.133 avatars7.githubusercontent.com
199.232.68.133 avatars8.githubusercontent.com
# GitHub End
配置环境
Homebrew
执行: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
;
如果安装太慢,直接使用现成的国内镜像源,执行下面的命令,选1(亲测速度最快),且自动换成国内的源
执行 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
常用软件:
brew install zsh git vim screenfetch curl wget gitg tree
brew install --cask visual-studio-code
zsh
执行: 如下命令,若是失败,直接下载和运行此可执行文件
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc #拷贝模板
vim ~/.zshrc #修改主题为 ZSH_THEME="cloud “
chsh -s /bin/zsh #从bash切换到zsh
chsh -s /bin/bash #从zsh切换到bash
#------------------------------------------------------------
PATH="$PATH:./node_modules/.bin" # 可以在 .zshrc 后面添加如下
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
export GPG_TTY=$(tty) # delete 删除键正常工作
alias tree='tree -CN' #设置 tree 显示中文且带有颜色
set number #设置行号
Git
brew install git
git config --global user.name "xmuli"
git config --global user.email "xmulitech@gmail.com"
ssh-keygen -t rsa -C "xmulitech@gmail.com" # 生成密钥
cat ~/.ssh/id_rsa.pub # 显示公钥
git config --global core.quotepath false # gitBash 路径显示为中文数字
git config --global --list # 查看 git 配置
Git
代理
# ---------------------------一、HTTP 形式---------------------------
git config --global http.proxy "http://127.0.0.1:1087" # 走 HTTP 代理
git config --global https.proxy "http://127.0.0.1:1087"
git config --global http.proxy "socks5://127.0.0.1:1080" # 走 socks5 代理
git config --global https.proxy "socks5://127.0.0.1:1080"
git config --global --unset http.proxy # 取消设置
git config --global --unset https.proxy
# ---------------------------二、SSH 形式---------------------------
修改 `~/.ssh/config` 文件(不存在则新建):
# 必须是 github.com
Host github.com
HostName github.com
User git
# 走 HTTP 代理
# ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8080
# 走 socks5 代理(如 Shadowsocks)
# ProxyCommand nc -v -x 127.0.0.1:1080 %h %p
vim
下载 one.vim 文件 # https://github.com/rakr/vim-one/tree/master/colors 为下载网址
mkdir ~/.vim/colors/ # 没有该文件夹就创建
sudo cp ./one.vim ~/.vim/colors/ # 复制到 vim 主题下
vim ~/.vimrc # 修改 vim 配置文件,没有就创建;在 ~/.vimrc 加入如下三行代码后保存退出。「使用 one 主题的 dark 风格,且按下 delete 按键会删除字符」
colorscheme one
set background=dark
set backspace=2
----------------------------安装后提示----------------------------
You may want to add this to your PATH.
ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
If you need to have ruby first in your PATH, run:
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> /Users/xmuli/.bash_profile
For compilers to find ruby you may need to set:
export LDFLAGS="-L/usr/local/opt/ruby/lib"
export CPPFLAGS="-I/usr/local/opt/ruby/include"
nvm
nvm 常用命令
● nvm install stable 安装最新稳定版 node
● nvm install <version> 安装指定版本,如:安装v4.4.0,nvm install v4.4.0
● nvm uninstall <version> 删除已安装的指定版本,语法与install类似
● nvm use <version> 切换使用指定的版本node
● nvm ls 列出所有安装的版本
● nvm alias default <version> 如: nvm alias default v11.1.0
● nvm ls-remote ## 列出所以远程服务器的版本(官方node version list)
● nvm current ## 显示当前的版本
----------------------------安装后提示----------------------------
nvm via Homebrew is unsupported by them and you should check any
problems against the standard nvm install method prior to reporting.
You should create NVM's working directory if it doesn't exist:
mkdir ~/.nvm
Add the following to /Users/xmuli/.bash_profile or your desired shell
configuration file:
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
You can set $NVM_DIR to any location, but leaving it unchanged from
/usr/local/opt/nvm will destroy any nvm-installed Node installations
upon upgrade/reinstall.
Type `nvm help` for further information.
cnpm
执行:npm install -g cnpm --registry=https://registry.npm.taobao.org
;(PS: 不加 sudo
运行 )
Hexo
前提: 前面已经安装了 node.js + 替换淘宝源 cnpm。执行: npm install -g hexo-cli
;(PS: 不加 sudo
运行 )
# HomeBrew
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
# HomeBrew END
# nvm 提示配置 2021-02-09
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion