florianbuetow / dev-bootstrap

Setting up a new Mac for development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dev-bootstrap

My notes for setting up my dev and coding environment on a new Mac.

Fonts

Download, unpack and then open these fonts to install them:

  1. IBM_Plex_Mono
  2. JetBrainsMono

Sublimetext

  1. Download Subilme Text

TIP: When package control is not working, do this and restart sublimetext.

ln -sf /usr/local/Cellar/openssl@1.1/1.1.1o/lib/libcrypto.dylib /usr/local/lib/
  1. Install Nord theme for Sublimetext via package control. Then 'Select UI Color Scheme' via command palette to activate it.

sublime text with the nordtheme sublime text with the nordtheme

Java

Note: This might not be needed, because you can install Java and Gradle through IntelliJ (if you use it). Otherwise install manually using:

brew install openjdk

# Add export PATH="/usr/local/opt/openjdk/bin:$PATH" to zsh shell config
echo '' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc

brew install gradle

VSCODE

Download VSCode at code.visualstudio.com

Themes

Unless otherwhise noted, they can be installed through the Extension menu in VSCode. I like these themes:

  1. Horizon Theme
  2. Jetbrains Mono Typeface
  3. Nord Theme

Extensions

  1. Extension: Font Switcher
  2. Docker

Copilot

  1. GitHub Copilot
  2. GitHub Copilot Chat

GOLANG

Installing Extensions for VSCode

Just install the Go extension from Google.

Getting go tools installed via VSCODE popup

The popup will show as soon as you start editing .go files in VSCode.

To install the go tools, you need the apple's developer tools, which can be installed from CLI without installing XCODE (>4GB). Simply run the following in the terminal, and a new installation UI window should pop up specifically for the xcode developer tools:

xcode-select --install

Running fmt for Go on save automatically

To avoid having to manually run fmt every time:

  1. Install vs code extension "runonsave" from "emeraldwalk"
  2. Edit the settings.json and add:
"emeraldwalk.runonsave": {
    "commands": [
      {
        "match": "\\.go$",
        "cmd": "gofmt -w ${file}"
      }
    ]
}

Docker

Download and install docker desktop. Then start it once. The starting ensures that docker and docker-compose are available in the CLI.

Terminal

A nice theme for the OSX Terminal.

Get the code and import the xml file through Terminal settings

Code and Instructions on Github

An arctic, north-bluish color palette.

gotop running in a terminal with the nordtheme gotop running in a terminal with the nordtheme

tmux

brew install tmux

Install the plugin manager for tmux TPM

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Put this at the bottom of ~/.tmux.conf:

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

Install Nord theme for tmux to match the VSCode theme installed earlier.

  1. Add
set -g @plugin "nordtheme/tmux"

to your tmux.conf, by default .tmux.conf located in your home directory.

  1. press the default key binding prefix + I to fetch- and install the plugin.

Note: On a Mac its CTRL+b then press SHIFT+i. You should see a download and installed message on screen.

fzf

brew install fzf
# To install useful key bindings and fuzzy completion:
$(brew --prefix)/opt/fzf/install

git

brew install git

TODO: How to setup github user and email in CLI

others CLI tools

brew install screen
brew install watch
brew install wget
brew install htop
brew install gotop
brew install mc

Slack

Install Nord theme for Slack

About

Setting up a new Mac for development