New Mac setup

1Password

https://1password.com/

Homebrew

https://brew.sh/

> sudo /bin/bash -c "$(curl -fsSL  https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Solution for access issues

> sudo chown -R $(whoami) /usr/local/var
> chmod u+w /usr/local/var

iTerm

https://iterm2.com/

Arrow keys navigation setup

  1. Go to Preferences, Profile, Keys.
  2. Set your left ⌥ key to act as an escape character.
  3. Locate the current shortcut for ⌥ ← or create a new one, with the following settings:
    • Keyboard Shortcut: ⌥←
    • Action: Send Escape Sequence
    • Esc+: b
  4. repeat for the ⌥→ keyboard shortcut with the following settings:
    • Keyboard Shortcut: ⌥→
    • Action: Send Escape Sequence
    • Esc+: f

https://superuser.com/questions/427163/altarrow-moving-between-words-in-zsh-and-iterm2

Terminal colors

> touch ~/.profile
> echo "export CLICOLOR=1" > .profile
> echo "export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd" >> .profile
> . ~/.profile

https://geoff.greer.fm/lscolors/

Git

> brew install git

Oh my Posh

https://ohmyposh.dev/

> brew tap jandedobbeleer/oh-my-posh
> mkdir ~/.poshthemes
> cp /usr/local/opt/oh-my-posh/themes/paradox.omp.json ~/.poshthemes
> eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/paradox.omp.json)"
> source ~/.zshrc

zsh (.zshrc)

eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/paradox.omp.json)"
test -e /Users/bojan.bjelic/.iterm2_shell_integration.zsh && source /Users/bojan.bjelic/.iterm2_shell_integration.zsh || true
export CLICOLOR=1
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
export PATH="/usr/local/sbin:$PATH"

# Highlight the current autocomplete option
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"

# Better SSH/Rsync/SCP Autocomplete
zstyle ':completion:*:(scp|rsync):*' tag-order ' hosts:-ipaddr:ip\ address hosts:-host:host files'
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost ip6-localhost broadcasthost
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'

# Allow for autocomplete to be case insensitive
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' \
  '+l:|?=** r:|?=**'

# Initialize the autocompletion
autoload -Uz compinit && compinit -i

Visual Studio Code

https://code.visualstudio.com/docs/setup/mac

Maccy

https://maccy.app/

https://github.com/p0deje/Maccy

AltTab

https://alt-tab-macos.netlify.app/

https://github.com/lwouis/alt-tab-macos

Rectangle

https://rectangleapp.com/

https://github.com/rxhanson/Rectangle

Published by Bojan Bjelić

Working hard on a positive future. I'm blogging mostly about software, productivity and digital world.

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.