- 
iTerm2 
- 
Command Line Tools - xcode-select –install
 
- 
Brew 
- 
Alfred - https://www.alfredapp.com/
- brew cask install Alfred
- https://twitter.com/hadleywickham/status/968624630276804608
- Two Alfred custom searches
- R code on GitHub
- GitHub (General)
 
 
- 
Firefox - https://www.mozilla.org/en-US/firefox/developer/
- brew tap homebrew/cask-version
- brew install --cask firefox-developer-edition
 
- 
Firefox Sync 
- 
R 
- 
RSwitch 
- 
RStudio - https://dailies.rstudio.com/ or via RSwitch
 
- 
Packages # Install and setup {pak} install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/") pak::pak_setup() # Install tidyverse pak::pkg_install("tidyverse") # and lots of other things... pak::pkg_install(c("usethis", "devtools", "here", "styler", "remotes")) pak::pkg_install(c("xaringan", "blogdown", "bookdown", "pagedown")) my_packages <- c("xaringanExtra", "js4shiny", "shrtcts", "rsthemes", "ermoji", "regexplain") pak::pkg_install(paste0("gadenbuie/", my_packages)) # more RStudio addins pak::pkg_install(c( "daattali/addinslist", "seasmith/AlignAssign", "MilesMcBain/datapasta", "MilesMcBain/gistfo" )) 
- 
AltTab - https://alt-tab-macos.netlify.app/
- brew cask install alt-tab
 
- 
Dozer - https://github.com/Mortennn/Dozer
- brew cask install dozer
 
- 
Rectangle - https://rectangleapp.com/
- brew cask install rectangle
 
- 
Kap - https://getkap.co/
- brew cask install kap
- Open Kap and install extra plugins:
- do-not-disturb turns off notifications when recording
- hide-clock hides the clock in menu bar when recording
- key-cast shows key presses (I configure to show only combination keys)
- playback-speed adjust video speed
 
- Set Kap keyboard shortcut to Cmd + Shift + 3and then disable the Mac screenshot shortcut in System Preferences > Keyboard > Shortcuts > Screenshots
 
- 
Flycut 
- 
Culrs 
- 
Amphetamine 
- 
Pock 
- 
Keycastr - https://github.com/keycastr/keycastr
- brew cask install keycastr
 
- 
irvue 
- 
Spotify - brew cask install spotify
 
- 
Work things: - Slack - brew cask install slack
- Zoom
- Google Drive - https://www.google.com/drive/download/
 
- Slack - 
- 
Visual Studio Code - https://code.visualstudio.com/
- brew cask install visual-studio-code
 
- 
Notion 
- 
Agenda - https://www.agenda.com/
- date focused note taking
 
- 
Figma - https://www.figma.com/
- design and mockups
 
- 
Fork 
- 
ColorSlurp 
- 
OBS - https://obsproject.com/
- brew install --cask obs obs-virtualcam
 
- GitHub cli
- https://github.com/cli/cli#github-cli
- brew install gh
 
- Bat
- https://github.com/sharkdp/bat
- brew install bat
 
- Nat
- https://github.com/willdoescode/nat
- brew tap willdoescode/homebrew-nat
- brew install natls
 
- Bit
- https://github.com/chriswalz/bit
- brew install bit-git
 
- Tldr
- Homebrew-cask-fonts
- https://github.com/Homebrew/homebrew-cask-fonts
- brew tap homebrew/cask-fonts
- brew cask install font-iconsolata
- brew search font-
 
- https://nodejs.dev/ - brew install node
- Gitmoji
- https://www.npmjs.com/package/gitmoji-cli
- npm install -g gitmoji-cli
 
- StandardJS
- https://standardjs.com/
- npm install standard –global
 
- https://fishshell.com/
- brew install fish
- fisher
- Nerd Fonts
- brew install --cask font-hasklug-nerd-font
 
- tide
- fisher install IlanCosman/tide
 
- z
- fisher install jethrokuan/z
 
- awesome fish
Stuff I've done that probably doesn't need to be done in any order.
- Set Flycut clipboard navigator shortcut to Cmd + Option + V
- Turn on Dock hiding
- Rename computer: System Prefs > Sharing > Computer Name
- Add RSwitch to Login Items
- Alias lltonatls -l:fish> alias -s ll="natls -l"
- System Preferences > Accessibility
- Zoom > ☑️ Use scroll gesture with Control keys
- Enable Hover Text > ☑️ Enable Hover Text with Command
 
RSwitch has a command-line tool, which can be symlinked into /usr/local/bin for easy switching on from the terminal. See Using RSwitch.
ln -s /Applications/RSwitch.app/Contents/Resources/rswitch-cmd /usr/local/bin/rswitch
I'm not exactly sure what went wrong with the R install, but it seems like R and Rscript aren't found. I reinstalled both versions but that didn't work.
From the RSwitch docs I learned that R lives in
/Library/Frameworks/R.framework/Resources/bin/R
so I linked the binary into /usr/local/bin with
ln -s /Library/Frameworks/R.framework/Resources/bin/R /usr/local/bin/R
ln -s /Library/Frameworks/R.framework/Resources/bin/Rscript /usr/local/bin/Rscript
and that fixed R and Rscript from the command line. I wonder if I should do the same for Rcmd, but I guess I'll find out later.
Run with defaults to add key to ~/.ssh/id_rsa
ssh-keygen
Copy ~/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub | pbcopy
and add to GitHub to authenticate SSH connections at https://github.com/settings/ssh/new.
library(usethis)
browse_github_pat()
# choose scopes
edit_r_environ()
# copy paste PAT# follow instructions
gh auth login
# set default protocol to ssh
gh config set git_protocol ssh
I ended up creating a .dotfiles repo and I put these files into it for now.
.
├── bin
│   └── create.r
├── git
│   ├── gitconfig
│   └── gitignore
├── iterm2
│   └── Profiles.json
├── r
│   ├── .Rprofile
│   └── .shrtcts.R
├── rstudio
│   ├── keybindings
│   └── rstudio-prefs.json
└── vim
    ├── .viminfo
    └── .vimrc
I put my things into ~/work, ~/play and ~/notes.
- workis for work projects and deliverables.
- playis for side work projects and experiments
- notesis for reprexes, tests, keeping track of learning projects
I also typically create a default RStudio project so that it's easy to launch a "scratchpad" R session. It also makes it easy to open the experimental session in a new RStudio window. The project lives in ~/notes/default/.
Once installed, I can switch to Finder and click Finder > Services > Big Mouse to enlarge the mouse for presentations or screen recording
- Open Automator and create a new Quick Action.
- Search for AppleScriptand then drop Run AppleScript into the workflow.
- Set the workflow to receive no input
- Paste the AppleScript code below to replace (* Your script goes here *)
- Edit the mouse size to a number between 1 (normal) and 4 (big). I pick 4 for big mouse.
- Save the workflow as "Big Mouse"
- Duplicate the workflow and adjust the mouse size number to normal size
- Save this new workflow as "Normal Mouse"
- Switch to Finder, click Finder in menu bar, then Services, then run "Big Mouse".
- Give Finder accessibility permissions if the workflow fails
tell application "System Preferences"
	activate
	reveal anchor "Seeing_Display" of pane id "com.apple.preference.universalaccess"
end tell
tell application "System Events"
	tell process "System Preferences"
		repeat until exists radio button "Cursor" of tab group 1 of group 1 of window 1
			delay 0.1
		end repeat
		click radio button "Cursor" of tab group 1 of group 1 of window 1
		repeat until exists slider "Cursor Size:" of tab group 1 of group 1 of window 1
			delay 0.1
		end repeat
		set theSlider to slider "Cursor Size:" of tab group 1 of group 1 of window 1
		set stash to value of theSlider
		set value of theSlider to 1.0
		stash
	end tell
end tell
Debugging AppleScript: this link was essential to determine which UI elements and buttons needed to be scripted in AppleScript (things changed in Big Sur).
brew install --cask \
  font-fantasque-sans-mono font-fantasque-sans-mono-nerd-font \
  font-noto-sans font-noto-serif font-noto-mono font-noto-mono-for-powerline font-noto-emoji \
  font-hasklug-nerd-font font-anonymice-nerd-font font-meslo-lg-nerd-font \
  font-fira-code font-fira-mono font-fira-sans font-fira-sans-condensed \
  font-pt-mono font-pt-sans font-pt-sans-narrow font-pt-serif font-pt-sans-caption font-pt-serif-caption