Are you getting enough sleep?

いつも眠い.これが睡眠負債というやつか.

Mac mini

Mac miniを購入した。 2017年以来,iMacをつかっていたけど,さすがに限界を感じる。OSもBig Surからアップデートしてないし。 環境移行は,TimeMachineとか一括ですることはしない。 なるべくゴミはいれたくない。

  • zshzsh-completions,zsh-autosuggestions 。 zsh --ignore-dependencies はいまは推奨されないとでるけど,そうなの?

  • openssh。これをいれると,他にもいろいろ入る。

  • cask。GUIも入れたいので。

  • basictex,ghostscript。collection-langjapanese は必要になったら入れる。数式をlatexitで作ることができれば,現状問題ない。

macOS の zsh ではこれだけはやっておこう


悩むのは,homebrewでどこまでインストールするか,です。
忘れないように,いれたものをメモ。

TEXをどのように入れるか,いろいろみてるけどよくわからん。
下記のように,システムのディレクトリにばら撒くとか,完全なアンインストールは難しいとなると,MacTex以外がいいのかなと。
というわけで,やっぱり brew でインストールすることにした。

MacTeX をおすすめできる場合とそうでない場合(私見) | ラング・ラグー

昔はTEXで文書もつくってたけど,いまはkeynote用の数式をつくるくらい。
なので,今回はBasicTexにしてみる。

BasicTeX - TeX Wiki

初心者がBasicTexをmacにインストールする(2019年) #Mac - Qiita

MacにTeX環境構築 #Mac - Qiita

Mac HomebrewでMacTex/Ghostscriptを導入する際の注意


==> Caveats
To activate these completions, add the following to your .zshrc:

  if type brew &>/dev/null; then
    FPATH=$(brew --prefix)/share/zsh-completions:$FPATH

    autoload -Uz compinit
    compinit
  fi

You may also need to force rebuild `zcompdump`:

  rm -f ~/.zcompdump; compinit

Additionally, if you receive "zsh compinit: insecure directories" warnings when attempting
to load these completions, you may need to run these commands:

  chmod go-w '/opt/homebrew/share'
  chmod -R go-w '/opt/homebrew/share/zsh'
==> Summary
🍺  /opt/homebrew/Cellar/zsh-completions/0.35.0: 151 files, 1.4MB
==> Running `brew cleanup zsh-completions`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
==> Caveats
To activate the autosuggestions, add the following at the end of your .zshrc:

  source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh

You will also need to restart your terminal for this change to take effect.
==> Summary
🍺  /opt/homebrew/Cellar/zsh-autosuggestions/0.7.0: 6 files, 44.8KB
==> Running `brew cleanup zsh-autosuggestions`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

MacBook Air が2024年3月発表予定らしい。
それを狙うことにしよう。