Gist, Oh my zsh with autosuggestions & syntax-highlighting, by @dogrocker that does all the stuff I actually ended up doing.
- Moving to zsh by Armin Briegel
- zsh-completions
zsh-autcomplete- zsh-autosuggestions
- zsh autosuggestions: A beginner's guide for setting up autocomplete on OhMyZsh & Hyper with plugins & themes by Kumar Abhirup
- Apple M1 – Installing HomeBrew and ZSH by Narlei Moreira
- powerlevel10k
- iTerm2 + Oh My Zsh + Powerlevel9k + Monaco Nerd Complete Font by Luis Puerto
- iTerm2 + Oh My Zsh! + Powerlevel10K best terminal combination for Geeks! by Camilo Martinez
- How to install custom plugins and themes with Oh-My-ZSH by Lars Behrenberg
-
For R users using homebrew, your
.Renviron
needsPATH="/opt/homebrew/bin:${PATH}"
in it. -
Install fonts on your mac from the command line with homebrew by M. Scott Ford on Corgibytes
- n.b. re. above, replace all instances of
brew cask install
withbrew install --cask
(the syntax has changed)
- n.b. re. above, replace all instances of
-
You can install fonts with homebrew?! by Jerod Santo
-
From How to migrate to native Homebrew on an M1 Mac by Tony Smith:
If, like me, you have multiple Macs with different CPU architectures, you can add something like this to your
.bash_profile
or.zshrc
file:# Handle Mac platforms CPU=$(uname -p) if [[ "$CPU" == "arm" ]]; then export PATH="/opt/homebrew/bin:$PATH" export EDITOR=/opt/homebrew/bin/nano alias nano=/opt/homebrew/bin/nano alias oldbrew=/usr/local/bin/brew else export PATH="/usr/local/bin:$PATH" export EDITOR=/usr/local/bin/nano alias nano=/usr/local/bin/nano fi
-
Ch 7 Introduce yourself to Git | Happy Git and GitHub for the useR by Jenny Bryan
n.b. If you haven't already, you'll need to install {usethis} and {gitcreds} for the following:
-
Connect Git, GitHub, RStudio >> Personal access token for HTTPS:
from R, do:
usethis::create_github_token()
... Click “Generate token”. Copy the generated PAT to your clipboard. ... [S]tore the PAT explicitly right now. In R, call gitcreds::gitcreds_set() to get a prompt where you can paste your PAT:
gitcreds::gitcreds_set()
- {gpg}: GNU Privacy Guard for R
- Using GPG in R by Jeroen Ooms
- GitKraken: Commit signing with GPG
- Setup Git Keybase.io PGP signed/verified commit by Michael Hirsch on SciVision
- Verify Commit Signatures | GitHub Docs
- Telling Git about your signing key (you need the rest of the steps, too, but I came back to this one when I borked something later on)
- If you run into problems (more on this later) check out How to understand the
gpg failed to sign the data
problem in git—TL;DR: if you have problems after runningecho "test" | gpg --clearsign
, the issue is with your gpg setup, not git.
brew install miniconda
- You can
brew install python*
(where * = 3 or nothing sometimes), too - Find all your homebrew pythons with
ls -l /opt/homebrew/bin/python*
- If you get very annoyed by the fact that
python --version
returnsPython 2.7.16
by default (I sure did) there are probably a lot of ways to deal with it (several of them mentioned in this SO response to How to install multiple Python versions on Mac M1...I went the pyenv route- Set Python 3 as default on Mac OS by Syed Shariefi
- The right and wrong way to set Python 3 as default on a Mac by Matthew Broberg
- How to Install Python 3 on Mac – Brew Install Update Tutorial by Quincy Larson
- Install pyenv:
brew install pyenv
- Install python version(s):
pyenv install 3.9.1
(or whatever version of Python you want—see them on the Active Python releases page) - Set your global default with
pyenv global 3.9.1
(or your chosen Python version) - Check it with
pyenv version
- Add the info to your shell profile (for me
.zshrc
) withecho -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
- Reload your profile (e.g.
source ~/.zshrc
, oromz reload
) - Check your
python --version
now...it should return the version you set withpyenv global
- I didn't have to do this, but if you're having problems, you might mess with your path?
PATH=$(pyenv root)/shims:$PATH
- ❌ Plot twist! Turns out I'm still using the Python from miniconda (
which python
) returns/opt/homebrew/Caskroom/miniconda/base/bin/python
. But, before I did all the pyenv stuffpython --version
was returningPython 2.7.16
and now it's returningPython 3.8.11
, so I'm happy enough. That, and most of the solutions suggested are in the "wrong-way" sections of The right and wrong way to set Python 3 as default on a Mac. - Using pyenv with miniconda works, but you need to install
miniconda3-*
versions when installing with pyenv. For example, as of this writing, runningpyenv install miniconda3-latest
works. And, when I runpython --version
I getPython 3.8.19
back. - I'm not 100% sure the previous two bullets are causally related. If I want to deep dive into this, see Python, The System Path and how conda and pyenv manipulate it by Mark Jamison.
- Yet Another Dotfiles Manager (yadm) Install with
brew install yadm
. Seriously, I am a total yadm convert. It's amazing. - Setting up yadm led me to realize I hadn't properly configured gpg stuff for command-line git, which begat Troubleshooting gpg commit signing, which led me to this answer on SO for "gpg: signing failed: Inappropriate ioctl for device"
brew install pinentry-mac
- Create or edit
~/.gnupg/gpg-agent.conf
if it doesn't already exist, and addpinentry-program /usr/local/bin/pinentry-mac
to it - Run
killall gpg-agent
in terminal - Proceed as you meant to (in my case, succesfully
yadm commit -m "Message about what I just added."
)
- Mac dev setup: A macOS setup guide specific to front-end development by Michael Schwobe (Not R-related, but cool guided setup)
- Alfred GitHub repos
- Workaround for Alfred permissions error(s) (xxx cannot be opened because the developer cannot be verified)
- thefuck because I am bad at typing
- Node stuff with nvm: How to Install Node on a MacOS, Linux, or Windows Machine Using NVM by Adeel Imran