Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macos:setup-new-macos [2023-07-03] dcaimacos:setup-new-macos [2025-03-21] (current) dcai
Line 1: Line 1:
 ===== Setup new macOS ===== ===== Setup new macOS =====
  
-==== Download ====+==== 🟦 Download and scripts ====
  
-  - **添加中文双拼输入法** +=== 👉 启用自然码 === 
-  - **启用自然码** <code bash>+ 
 +<code bash> 
 +# 添加中文双拼输入法
 # choose ziranma # choose ziranma
 defaults write com.apple.inputmethod.CoreChineseEngineFramework shuangpinLayout 5 defaults write com.apple.inputmethod.CoreChineseEngineFramework shuangpinLayout 5
 </code> </code>
-  - Install brew (go ahead install app store apps while waiting) <code bash>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</code> 
-  - install brew packages<code bash> 
-# essentials 
  
-/opt/homebrew/bin/brew install fish iterm2+=== 👉 Install brew ===
  
-echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells +Go ahead install app store apps while waiting
-chsh -s /opt/homebrew/bin/fish+
  
-# dev must have +<code bash> 
-brew install --cask hammerspoon the-unarchiver raycast slack postman uninstallpkg espanso+/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 
 +</code>
  
-brew install \ +=== 👉 ffmpeg ===
-  aria2 aspell bat cmake colordiff coreutils \ +
-  direnv dfc duf exa exiftool fd fish fastfetch gawk git git-delta \ +
-  gnu-sed gnupg2 gopass htop imagemagick \ +
-  iproute2mac ispell jpeg jq macchina ncdu openssl \ +
-  pandoc pcre pcre2 pv python3 qpdf \ +
-  rg rsync stylua sponge the_silver_searcher tealdeer tig \ +
-  tmux tmuxp tree vim viu watch xplr xz neovim+
  
-# coding things +<code bash> 
-brew install prettier black virtualenv shellcheck shfmt isort \ +cd ~/.local/bin
-  tree-sitter luajit lua-language-server eslint stylua typescript \ +
-  typescript-language-server pyright +
- +
-# clang +
-brew install clang-format llvm +
- +
-npm i -g lua-fmt neovim source-map-support cspell yarn +
-python3 -m pip install --user --upgrade pynvim +
- +
-brew install -f gdu +
-brew link --overwrite gdu  # if you have coreutils installed as well +
- +
-# docker ps +
-brew install ctop lazydocker +
- +
-# db stuff +
-brew install litecli mycli pgcli +
- +
-# cloud stuff +
-brew install aws-cdk awscli azure-cli google-cloud-sdk +
- +
-# youtube-dl/yt-dlp +
-brew install yt-dlp/taps/yt-dlp +
- +
-## motd stuff +
-brew install lolcat cowsay fortune +
- +
- +
-# home computer must have +
-brew install --cask bartender vlc iina v2rayu dropbox wechat itsycal visual-studio-code +
- +
-## Universal Ctags (abbreviated as u-ctags) is a maintained implementation of ctags +
-# brew install --HEAD universal-ctags/universal-ctags/universal-ctags +
- +
-git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0 +
-asdf plugin add nodejs 'https://github.com/asdf-vm/asdf-nodejs.git' +
-asdf global nodejs system +
-arch -x86_64 asdf install nodejs 12.9.1 +
-</code> +
-  - ffmpeg<code bash>+
 # It's easier installing just one binary than install many brew dependencies # It's easier installing just one binary than install many brew dependencies
-curl -O 'https://evermeet.cx/ffmpeg/ffmpeg-6.0.zip' +curl -O 'https://evermeet.cx/ffmpeg/ffmpeg-7.1.1.zip' 
-unzip ffmpeg-6.0.zip && chmod a+x ffmpeg && mv ffmpeg ~/.local/bin/ +unzip ffmpeg-7.1.1.zipchmod a+x ffmpeg 
-curl -O 'https://evermeet.cx/pub/ffprobe/ffprobe-6.0.zip' +curl -O 'https://evermeet.cx/ffmpeg/ffprobe-7.1.1.zip' 
-unzip ffprobe-6.0.zip && chmod a+x ffprobe && mv ffprobe ~/.local/bin/ +unzip ffprobe-7.1.1.zipchmod a+x ffprobe
-</code> +
-  - prepare ''~/.git-credentials'' +
-  - ''git clone https://github.com/dcai/.dotfiles.git ~/.dotfiles'' +
-  - ''bash ~/.dotfiles/install'' +
-  - ''bash ~/.bin/macos-tweak.sh'' +
-  - [[https://www.mowglii.com/itsycal/|itsycal]], use datetime format: ''# d MMM H:mm #'' +
-  - Update ''/etc/sudoers'': <code> +
-echo -e '\n%admin  ALL=(ALL) NOPASSWD: ALL\n' | sudo tee -a /etc/sudoers+
 </code> </code>
-  - update user shell: <code>sudo chsh -s /usr/local/bin/fish dcai</code> 
-  - Font: https://github.com/sunaku/tamzen-font#tamzenforpowerline-16, use ''./ttf/TamzenForPowerline8x16r.ttf'', choose size ''16'' in ''iterm2'' 
-==== Settings ==== 
  
-  - ''Keyboard'' => ''Modifier Keys'' => ''Caps Lock to Control'' +=== 👉 Other scripts to run: ===
-  - ''Accessibility'' => ''Pointer Control'' => ''Mouse & Trackpad'' => ''Trackpad Options'' => ''Enable dragging'' => ''with drag lock''+
  
 +  - prepare ''%%~/.git-credentials%%''
 +  - ''%%git clone https://github.com/dcai/.dotfiles.git ~/.dotfiles%%''
 +  - ''%%bash ~/.dotfiles/install%%''
 +  - ''%%bash ~/.bin/macos-tweak.sh%%''
 +  - ''%%bash sudo sed -i "" '/dcai/d' /etc/sudoers && echo -e '\ndcai\tALL=(ALL) NOPASSWD: ALL\n' | sudo tee -a /etc/sudoers%%''
 +  - ''%%sudo chsh -s /usr/local/bin/fish dcai%%''
 +  - [[https://www.mowglii.com/itsycal/|itsycal]], use datetime format: ''%%🍏 d MMM H:mm a%%''
  
 +=== 👉 Settings ===
  
-==== Drivers ====+  - ''%%Keyboard%%'' => ''%%Modifier Keys%%'' => ''%%Caps Lock to Control%%'' 
 +  - ''%%Accessibility%%'' => ''%%Pointer Control%%'' => ''%%Mouse & Trackpad%%'' => ''%%Trackpad Options%%'' => ''%%Enable dragging%%'' => ''%%with drag lock%%''
  
-<code> +==== 🟦 Must have macOS apps ====
-brew install fujifilm-x-webcam homebrew/cask-drivers/lg-onscreen-control +
-</code> +
- +
- +
- +
-==== Must have macOS apps ====+
  
-=== app store ====+=== 👉 app store ===
  
   * [[https://apps.apple.com/ch/app/pixelmator/id407963104?ign-mpt=uo%3D2&l=en&mt=12&v0=WWW-EUCH-ITUHOME-NEWAPPLICATIONS|PixelMator]]   * [[https://apps.apple.com/ch/app/pixelmator/id407963104?ign-mpt=uo%3D2&l=en&mt=12&v0=WWW-EUCH-ITUHOME-NEWAPPLICATIONS|PixelMator]]
Line 110: Line 53:
   * [[https://apps.apple.com/us/app/menu-world-time/id1446377255|Menu World Time]]   * [[https://apps.apple.com/us/app/menu-world-time/id1446377255|Menu World Time]]
  
-=== Tools ===+=== 👉 Tools ===
  
   * espanso   * espanso
   * [[https://topnotch.app/|TopNotch]]   * [[https://topnotch.app/|TopNotch]]
-  * [[https://www.sublimetext.com/3|sublime text 3]] => [[:sublimetext|config]] 
   * [[https://www.raycast.com/|Raycast]]: Launcher   * [[https://www.raycast.com/|Raycast]]: Launcher
   * [[https://www.telestream.net/screenflow/overview.htm|ScreenFlow]]   * [[https://www.telestream.net/screenflow/overview.htm|ScreenFlow]]
   * [[https://www.paragon-software.com/home/ntfs-mac/download.html|Microsoft NTFS for Mac by Paragon Software]]   * [[https://www.paragon-software.com/home/ntfs-mac/download.html|Microsoft NTFS for Mac by Paragon Software]]
-  * [[https://www.corecode.io/uninstallpkg/| UninstallPKG]] => Uninstall pkg+  * [[https://www.corecode.io/uninstallpkg/|UninstallPKG]] => Uninstall pkg
   * [[https://freemacsoft.net/appcleaner/|AppCleaner]]: uninstall apps   * [[https://freemacsoft.net/appcleaner/|AppCleaner]]: uninstall apps
-  * [[https://www.macbartender.com/Bartender4/|Bartender 4]]+  * [[https://github.com/jordanbaird/Ice|Ice]]
   * [[https://github.com/bhaller/Jiggler|Jiggler]]: move mouse to keep mac awake   * [[https://github.com/bhaller/Jiggler|Jiggler]]: move mouse to keep mac awake
  
 +=== 👉 security ===
  
-=== security === 
   * [[https://radiosilenceapp.com|Radio Silence]]   * [[https://radiosilenceapp.com|Radio Silence]]
   * [[https://github.com/objective-see/LuLu|LuLu]]   * [[https://github.com/objective-see/LuLu|LuLu]]
-  * <del>[[https://www.veracrypt.fr/en/Downloads.html|VeraCrypt]]</del>  [[https://cryptomator.org|cryptomator]]+  * <del>[[https://www.veracrypt.fr/en/Downloads.html|VeraCrypt]]</del> [[https://cryptomator.org|cryptomator]] 
 + 
 +=== 👉 Nice to have macOS apps ===
  
-==== Nice to have macOS apps ==== 
   * [[https://www.trankynam.com/atext/downloads/aText.dmg|aText]]   * [[https://www.trankynam.com/atext/downloads/aText.dmg|aText]]
   * [[https://symless.com/synergy|Synergy]]: share mouse and keyboard   * [[https://symless.com/synergy|Synergy]]: share mouse and keyboard
-  * [[https://macpaw.com/cleanmymac|CleanMyMac]] 
   * [[http://www.publicspace.net/ABetterFinderRename/|ABetterFinderRename]]   * [[http://www.publicspace.net/ABetterFinderRename/|ABetterFinderRename]]
   * [[https://hovancik.net/stretchly/|stretchly]]   * [[https://hovancik.net/stretchly/|stretchly]]
Line 139: Line 81:
   * [[https://github.com/Mortennn/Dozer|Dozer]]: clean up menubar items, Bartender alternative   * [[https://github.com/Mortennn/Dozer|Dozer]]: clean up menubar items, Bartender alternative
  
-=== dev ===+=== 👉 dev === 
   * [[https://sequelpro.com/download|Sequel Pro]]   * [[https://sequelpro.com/download|Sequel Pro]]
   * [[https://www.vagrantup.com/downloads.html|Vagrant]]   * [[https://www.vagrantup.com/downloads.html|Vagrant]]
  
 +=== 👉 I’m trying ===
  
-==== I'm trying ==== 
   * [[https://github.com/jjgod/mac-dictionary-kit/releases|DictUnifier]]   * [[https://github.com/jjgod/mac-dictionary-kit/releases|DictUnifier]]
 +
macos/setup-new-macos.1688390184.txt.gz · Last modified: by dcai