Skip to content

Instantly share code, notes, and snippets.

@joseph-lozano
Created October 29, 2022 23:54
Show Gist options
  • Save joseph-lozano/40f45a3123e64f0fef910b40e53cb9ae to your computer and use it in GitHub Desktop.
Save joseph-lozano/40f45a3123e64f0fef910b40e53cb9ae to your computer and use it in GitHub Desktop.

Mac Setup

  1. Adjust settings
  • disable scroll direction: natural
  • allow watch to unlock mac
  • require password 5 seconds after screen saver
  • clear apps from dock and move dock to left
  1. install homebrew

  2. install Rosetta sudo softwareupdate --install-rosetta

  3. install brew packages

brew install docker docker-compose gh fish cowsay bpytop postgresql starship magic-wormhole cmatrix neofetch the_silver_searcher pre-commit tmux ngrok awk
  1. install brew casks
brew tap homebrew/cask-drivers # for shureplus-motiv
brew install --cask iterm2 visual-studio-code dash docker google-chrome discord slack 1password fantastical rectangle-pro choosy bartender alfred istat-menus postgres-unofficial trailer obs screenflow shureplus-motiv homebrew/cask-fonts/font-fira-code font-fira-code-nerd-font cloudflare-warp postico
  1. install oh my fish and change shell to fish
curl -L https://get.oh-my.fish | fish
sudo bash -c 'echo $(which fish) >> /etc/shells'
chsh -s $(which fish)
  1. login to 1 password
  2. setup gh (gh auth login)
  3. setup apps
  • iterm: set font to Fira Code, add dracula theme
  • chrome: login, set up TD and client profiles
  • choosy: set as default browser and setup personal, td, and client rules
  • alfred: enable shortcut and clippboard history
  • rectangle-pro: change shortcuts
  • download dank mono font
  • vs code: login and sync settings
  • fantastical: login
  • discord: login
  • slack: login (testdouble google, [email protected] and [email protected])
  • trailer: create personal access token and setup repos
  1. edit ~/.config/fish/config.fish (at bottom of file)

  2. edit ~/.config/startship.toml (bottom of file)

  3. install asdf via git https://asdf-vm.com

  4. setup elixir, erlang and nodejs asdf plugin-add erlang; asdf plugin-add elixir; asdf plugin-add nodejs

  5. install erlang deps (see https://github.com/asdf-vm/asdf-erlang#osx) brew install autoconf wxwidgets [email protected] libxslt fop

12.configure git git config --global push.autoSetupRemote true; git config --global user.email [email protected]; git config --global init.defaultBranch main

Client specific

brew install direnv libvips
# add `direnv hook fish | source` to config.fish

fish.config:

set fish_greeting "$(cowsay -f small 'Hello Joseph')"

direnv hook fish | source

starship init fish | source
source ~/.asdf/asdf.fish


export KERL_CONFIGURE_OPTIONS="
      --disable-debug \
      --disable-silent-rules \
      --without-javac \
      --enable-shared-zlib \
      --enable-dynamic-ssl-lib \
      --enable-threads \
      --enable-kernel-poll \
      --enable-wx \
      --enable-webview \
      --enable-darwin-64bit \
      --enable-gettimeofday-as-os-system-time \
      --with-ssl=$(brew --prefix [email protected]) \
      "
export KERL_BUILD_DOCS=yes
export ERL_AFLAGS="-kernel shell_history_enabled"

starship.toml

command_timeout = 1000

[character]
success_symbol = "[∴](bold green)"
error_symbol = "[✗](bold red) "

[package]
disabled = true

[git_branch]
style = "bold yellow"

[git_metrics]
disabled = false
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
deleted_style = "bold purple"

[git_status]
ahead = "⇡${count}"
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"

[elixir]
style = "bold blue"

[cmd_duration]
style = "inverted bold yellow"
min_time = 2_000
show_milliseconds = true

[sudo]
disabled = false
style = "bold green"

[line_break]
disabled = false

[hostname]
ssh_only = false
trim_at = ""

[username]
show_always = true
format = "[$user]($style)@"
style_user = "yellow bold"

[directory]
truncation_length = 1
truncation_symbol = ""
repo_root_style = "bold red"
fish_style_pwd_dir_length = 1

[[battery.display]]
threshold = 85

[time]
disabled = false
format = '🕯️ [$time]($style) '
time_format = "%T"
time_range = "21:00:00-07:00:00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment