0%

重装系统后的一些环境

vim

touch ~/.vimrc
echo "syntax on" >> ~/.vimrc

ruby

  1. brew install rbenv - 用rbenv控制ruby版本
  2. rbenv install 2.5.3 - 安装2.5.3版本
  3. rbenv global 2.5.3 - 默认2.5.3
  4. export PATH=~/.rbenv/shims:$HOME/bin:/usr/local/bin:$PATH - 默认2.5.3的条件
  5. gem update --system - 更新gem

    can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) 更新解决

  6. gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ - 国内源
  7. gem sources -l - 看一眼
  8. bundle config mirror.https://rubygems.org https://gems.ruby-china.com - 工程里设置国内源

node

  1. brew install node

db

  1. brew install postgresql

    pg_ctl -D /usr/local/var/postgres start - 启动
    brew services start postgresql - 维持
    brew postgresql-upgrade-database - 迁移

sublime text

version 3176
fileoffset 0x85036 - assemble mov rax, 1 retn 详情咨询辣个女人,兼职32号技师和64号技师

brew cask install sublime-text` # 3176
printf '\x48\xc7\xc0\x00\x00\x00\xc3' | dd seek=$((0x85036)) conv=notrunc bs=1 of=/Applications/Sublime\ Text.app/Contents/MacOS/Sublime\ Text

istat menus

version 6.31 (1090)
fileoffset 0x64b36

brew cask install istat-menus
printf '\x83' | dd seek=$((0x64b36)) conv=notrunc bs=1 of=/Applications/iStat\ Menus.app/Contents/MacOS/iStat\ Menus

欢迎关注我的其它发布渠道