Skip to content

11ze/use

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

use

设备

  • MacBook Pro 14' M1 16GB

Homebrew

brew tap homebrew/cask-fonts
brew tap homebrew/cask-versions
brew tap buo/cask-upgrade
brew tap mongodb/brew
brew tap homebrew/autoupdate

# https://github.com/DomT4/homebrew-autoupdate,每12小时或启动系统时自动更新
brew autoupdate start 43200 --upgrade --cleanup --immediate --sudo

brew install git git-lfs git-flow
git config --global core.autocrlf false # 不自动转换CRLF
git config --global core.quotepath off # 显示原始文件名
git config --global core.ignorecase false # 区分大小写
git config --global init.defaultBranch main
git config --global remote.origin.prune true # 自动移除不存在的远端分支
git config --global user.name username # 注意不要照抄
git config --global user.email email # 注意不要照抄
git config --global credential.git.luolix.top.provider username # 注意不要照抄

# 访达插件
brew install openinterminal # 在Finder打开终端,https://github.com/Ji4n1ng/OpenInTerminal,在访达任意地方右键,到Quick Actions里添加工具栏按钮
brew install qlmarkdown # 预览Markdown
brew install qlstephen # 预览没有扩展名的纯文本文件
brew install syntax-highlight # 代码高亮

brew install another-redis-desktop-manager
brew install btop
brew install dbeaver-community
brew install fnm # 管理Node.js版本
brew install font-hack-nerd-font
brew install font-jetbrains-mono
brew install iina # 媒体播放器
brew install iterm2
brew install kap # 录屏和Gif
brew install mac-mouse-fix # 增强鼠标功能
brew install maczip
brew install mini-program-studio # 支付宝小程序开发者工具
brew install neteasemusic # 网易云音乐
brew install picgo # 图床
brew install obsidian # 双链笔记
brew install postman # API客户端
brew install rectangle # 管理窗口布局
brew install snipaste # 截图和贴图
brew install sourcetree # Git客户端
brew install switchhosts
brew install tldr # 像man命令一样在终端查看命令的说明和使用例子,可设置别名alias iman='tldr'
brew install wechatwebdevtools # 微信开发者工具

brew tap mac-cleanup/mac-cleanup-py
brew install mac-cleanup-py # mac-cleanup [-c|-n]

# PHP
brew install composer
brew install php

# Go
brew install go

# 添加以下内容到 ~/.zshrc
export PATH="/Users/wangze/go/bin:$PATH"
export GO111MODULE=on
export GOPROXY=https://goproxy.cn

# Rust
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
rustc -V && cargo -V

# vi ~/.cargo/config.toml
[source.crates-io]
replace-with = 'ustc'

[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

# Java
brew install maven
brew install jenv

# 添加以下内容到~/.zshrc
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"

jenv add xxx # 可以用/usr/libexec/java_home查看xxx,一般在/Library/Java/JavaVirtualMachines/zulu-18.jdk/Contents/Home

App Store

软件

系统设置

  • 打开

    • 三指拖移
    • 触控板手势 - 更多手势 -App Exposé - 四指向下清扫
    • 使窗口按应用程序成组
    • 使用大写锁定键切换“ABC”输入法
    • 在滚动条中点按跳到点按的位置
    • 键盘快捷键
      • 调度中心
        • 向左移动一个空间 Ctrl + Q
        • 向右移动一个空间 Ctrl + W
      • 调度中心:Ctrl + E
      • 应用程序窗口:Ctrl + D
    • Finder > Menu Bar > View > Show Path Bar
    • Privacy & Security > Extensions > Added extensions > OneDrive > Finder extensions
  • 关闭

    • 调度中心 - 根据最近的使用情况自动重新排列空间
    • iCloud - 同步桌面与文稿文件夹
    • 在程序坞中显示最近使用的应用程序
    • Spotlight
    • Keyboard > Service > Text > Search man Page Index in Terminal

DNS

Github

# ~/.ssh/config
Host github.com
    HostName ssh.github.com
    User {username}
    Port 443

iCloud

# crontab -e定时kill iCloud进程,iCloud会自动重启,确保iCloud同步正常
*/10 * * * * killall bird && killall cloudd

Docker

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "10GB",
      "enabled": true
    }
  },
  "experimental": false,
  "log-driver": "json-file",
  "log-opts": {
    "max-file": "1",
    "max-size": "10m"
  }
}

Chrome

  • 访问一次google.com/ncr,避免Google自动重定向
  • F12进入DevTools,Setting > Experiments > Redesign of the filter bar in the Network Panel,关闭,效果:
    • image.png

About

我正在使用的东西

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published