Skip to content

Instantly share code, notes, and snippets.

@alessandrodias
Last active August 24, 2022 19:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alessandrodias/bca368a7936352cc8f609658ad3c6d26 to your computer and use it in GitHub Desktop.
Save alessandrodias/bca368a7936352cc8f609658ad3c6d26 to your computer and use it in GitHub Desktop.
MacOs Setup

iTerm2

Download iTerm2 and install oh-my-zsh

iTerm2

oh-my-zsh

ZSH Themes

» Choose theme: avit

Plugins

ZSH AutoSuggestions

  1. Clone the repository in custom plugins folder:
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  1. Add the plugin to the list of plugins in ~/.zshrc configuration file:
plugins=(
  …,
  zsh-autosuggestions
)

Syntax highlighting

  1. Clone the repository in custom plugins folder:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
  1. Add the plugin to the list of plugins in ~/.zshrc configuration file:
plugins=(
  …,
  zsh-syntax-highlighting
)

Restart ZSH

source ~/.zshrc

Mac OS

Customizations for mac OS

Dock appear fast

defaults write com.apple.dock autohide-delay -float 0

Enable key repeats

defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

Disable creation of DS_Store files on Network and USB volumes

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

Apps

  • Microsoft Edge
  • Spotify

MacOS Apps

  • 1Password (App Store)
  • Magnet (App Store)
  • Alfred (App Store)
  • ColorSlurp (App Store)
  • Clean Shot X (License on 1Password)
  • Bartender 4 (License on 1Password)

Development

  • iTerm2
  • Visual Code
  • Sublime Text

Node

// Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

// Install latest node version
nvm install node

VS Code Extensions

  • File Utils
  • EditorConfig
  • ESLint
  • GitLens
  • Vetur
  • vscode-icons
  • Dracula Official
  • Emmet
  • Sublime Text Keymap and Settings Importer

PHP

» Update native PHP version for MAMP version

  1. Edit zshrc file with: vim ~/.zshrc
  2. Paste the following: export PATH=/Applications/MAMP/bin/php/php7.1.1/bin:$PATH
  3. Reload terminal running: source ~/.zshrc

Composer

» Install Composer

sudo curl -sS https://getcomposer.org/installer | php

» Make composer global

sudo mv composer.phar /usr/local/bin/composer

» Test Composer

composer.phar --version

Git

» Creating git aliases

git config --global alias.st status

Sublime Text

» Open Sublime from command line

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
{ "keys": ["super+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment