Skip to content

Instantly share code, notes, and snippets.

@aguiarsouzatiz
Last active January 14, 2022 20:16
Show Gist options
  • Save aguiarsouzatiz/c4d5e6903137e0d7d661e75f27d4cd77 to your computer and use it in GitHub Desktop.
Save aguiarsouzatiz/c4d5e6903137e0d7d661e75f27d4cd77 to your computer and use it in GitHub Desktop.
OSX setup index

https://gist.github.com/tl86br/1b3ea775e6bba4d6b1b59284d7b47392

# --------------------------------------------------
# HOMEBREW & CASK
# --------------------------------------------------
# homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# cask
brew install cask
brew tap caskroom/versions
# !! any problem check
# brew doctor
# --------------------------------------------------
# OSX - FULL SETUP
# --------------------------------------------------
# homebrew-cask
curl -L https://gist.githubusercontent.com/tl86br/c4d5e6903137e0d7d661e75f27d4cd77/raw/6de783ad7974786a88a56d10a1dfc3f5568646b8/home-brew-cask.sh | sh
# oh my zsh
curl -L https://gist.githubusercontent.com/tl86br/c4d5e6903137e0d7d661e75f27d4cd77/raw/7392755895a487aef79e395b90d1769e2b576b3d/setup-coding-zsh.sh | sh
# essentials
curl -L https://gist.githubusercontent.com/tl86br/c4d5e6903137e0d7d661e75f27d4cd77/raw/83d63ed0f0337c04a13d1a319aa6e0489f27be97/setup-essentials.sh | sh
# fonts
curl -L https://gist.githubusercontent.com/tl86br/c4d5e6903137e0d7d661e75f27d4cd77/raw/ad2621b36ee58d86599052df88372389033cee4c/setup-font.sh | sh
# coding essentials
curl -L https://gist.githubusercontent.com/tl86br/c4d5e6903137e0d7d661e75f27d4cd77/raw/7392755895a487aef79e395b90d1769e2b576b3d/setup-coding-essentials.sh | sh
# design
curl -L https://gist.githubusercontent.com/tl86br/c4d5e6903137e0d7d661e75f27d4cd77/raw/6de783ad7974786a88a56d10a1dfc3f5568646b8/setup-design.sh | sh
# entertainment
curl -L https://gist.githubusercontent.com/tl86br/c4d5e6903137e0d7d661e75f27d4cd77/raw/7392755895a487aef79e395b90d1769e2b576b3d/setup-entertainment.sh | sh
# --------------------------------------------------
# ATOM (main config)
# --------------------------------------------------
# editor config
apm install editorconfig
# emmet
cd ~/.atom/packages
git clone https://github.com/emmetio/emmet-atom
cd emmet-atom
apm install
# theme
apm install seti-ui monokai-seti
# ide appearance
apm install nuclide
# ! fix hyperclick: preferences.. > packages > nuclide > settings > hyperclick > control + click
# packages
apm install emmet auto-update-packages advanced-open-file compare-files goto-definition
apm install git-time-machine git-blame merge-conflicts
apm install auto-detect-indentation highlight-line highlight-selected atom-bracket-highlight fold-lines autocomplete-paths expose
apm install linter-ui-default linter-htmlhint linter-csslint linter-sass-lint linter-eslint
apm install autocomplete-plus atom-ternjs javascript-snippets
apm install atom-beautify autoprefixer css-declaration-sorter
# ! beautify adjust indent default, wrap line, beautifier in html, erb, scsss
apm install minimap pigments color-picker
# type
# ! preferences.. > editor settings > fontfamily > FiraCode-Light.otf
# Preferences > Editor > Show invisibles/Show indent Guides
# --------------------------------------------------
# JAVASCRIPT plugins (atom)
# --------------------------------------------------
# node
brew install node
# helpers
atom-ternjs
# lint global - airbnb
# ->https://github.com/ResultadosDigitais/rd-product-team-wiki/wiki/Configurando-Javascript-linter-no-editor
export PKG=eslint-config-airbnb-base;
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install -g "$PKG"
npm install --save-dev eslint-config-airbnb-base
touch .eslintrc.json
echo '{"env":{"browser":true,"jquery":true},"extends": "airbnb-base/legacy"}' >> .eslintrc.json
# atom install lint
apm install linter linter-eslint script javascript-snippets linter-jscs
# preferences > packages > Linter Eslint > Settings >
# [x]Use global ESLint installation
# ~/.eslintrc.json no campo .eslintrc Path
# Set your default editor in Git to use Atom if the editor is installed
git config --global core.editor "atom --wait"
# --------------------------------------------------
# CODING
# --------------------------------------------------
# extra browsers
brew cask install chrome-devtools safari-technology-preview
# --------------------------------------------------
# RAILS
# --------------------------------------------------
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
# Install Ruby
# rbenv install 2.3.1
# rbenv global 2.3.1
# ruby -v
# --------------------------------------------------
# NODE
# --------------------------------------------------
brew install node
# --------------------------------------------------
# PYTHON 3
# --------------------------------------------------
brew install python
# --------------------------------------------------
# ITERM2
# --------------------------------------------------
# iterm2
brew cask install iterm2
# iterm2 > preferences > profiles > + > Name as Agnoster > Other Actions > Set as Default
# iterm2 > preferences > profiles > Agnoster > text > change font to menlo powerline
# close and reopen
# download darkside color files in https://github.com/bahlo/iterm-colors
# iterm2 > preferences > Agnoster > Colors > Color Presets... > Import... > Find and choose Darkside file in iterm-colors
# iterm2 > preferences > Agnoster > Colors > Color Presets... > Darkside
# iterm2 > preferences > Agnoster > Colors > ANSI Colors > Row Black - Column Bright change to 50% Gray
# --------------------------------------------------
# TERMINAL / COMMAND LINE
# --------------------------------------------------
# using darkside color in default terminal
# download schemes | https://github.com/lysyi3m/osx-terminal-themes/archive/master.zip
# terminal > preferences ... > settings > profiles > icon settings (sidebar footer) > Import
# > Find Darkside Scheme > Darkside (set default)
# > Change font to Menlo for Powerline | https://github.com/abertsch/Menlo-for-Powerline/archive/master.zip
# > Change ANSI Colors Bright Black (8) Hex Color # 313131
# --------------------------------------------------
# VISUAL STUDIO CODE
# --------------------------------------------------
brew cask install visual-studio-code
# extensions.json
# shift + command + p + paste:
# Extensions: Configure Recommended Extensions
# on sidebar Extensions paste:
# Extensions: Show Workspace Recommended Extensions command
{
# See http://go.microsoft.com/fwlink/?LinkId=827846
# for the documentation about the extensions.json format
"recommendations": [
"AESSoft.aessoft-class-autocomplete",
"AdamCaviness.theme-monokai-dark-soda",
"HookyQR.beautify",
"Zignd.html-css-class-completion",
"akamud.vscode-javascript-snippet-pack",
"anseki.vscode-color",
"christian-kohler.npm-intellisense",
"dbaeumer.vscode-eslint",
"eg2.vscode-npm-script",
"formulahendry.auto-rename-tag",
"formulahendry.code-runner",
"formulahendry.terminal",
"ionutvmi.path-autocomplete",
"mrmlnc.vscode-scss",
"msjsdiag.debugger-for-chrome",
"naumovs.color-highlight",
"qinjia.view-in-browser",
"rsbondi.highlight-words",
"shardulm94.trailing-spaces",
"shinnn.stylelint",
"steoates.autoimport",
"timothymclane.react-redux-es6-snippets",
"vincaslt.highlight-matching-tag",
"visioncan.vscode-jss-snippets"
]
}
# settings.json
{
"workbench.colorTheme": "Monokai Dark Soda",
"terminal.integrated.fontFamily": "Menlo for Powerline, Monaco, 'Courier New', monospace"
}
# --------------------------------------------------
# OH MY ZSH
# --------------------------------------------------
# zsh
brew install zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# theme
# download theme agnoster files in https://github.com/agnoster/agnoster-zsh-theme/archive/master.zip
# download and install menlo fonts ins https://github.com/abertsch/Menlo-for-Powerline
# set theme in zsh:
# open ~/.oh-my-zsh/themes
# paste downloaded theme there
# plugins
brew install zsh-autosuggestions
# more info zsh-navigation-tools
open ~/.zshrc
# ---
# in the line 8 of the opened doc change to ZSH_THEME=“agnoster”
# ---
# in the last line add the following code (remove the '#' in 'source ...')
# # Enable zsh-autosuggestions
# source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# ---
# close and reopen
# ---
# download https://github.com/lysyi3m/osx-terminal-themes
# ---
# Go to schemes/ folder
# Double click on selected *.terminal file. It will open a new Terminal window with that color scheme
# in terminal > preferences ... > profiles > text > Front - change
# changer for Menlo for Powerline
# set the scheme Darkside as the default
# --------------------------------------------------
# DESIGN
# --------------------------------------------------
# work
brew cask install adobe-creative-cloud adobe-photoshop-cc adobe-illustrator-cc adobe-indesign-cc
brew cask install sketch
brew install homebrew/cask/sketchpacks
# extension tools
brew cask install licecap handbrake
# manual
# https://bootstrapstudio.io/releases/desktop/Bootstrap%20Studio.zip
# --------------------------------------------------
# ENTERTAINMENT
# --------------------------------------------------
# multimedia
brew cask install spotify vlc
# game
brew cask install steam battle-net
# support
brew cask install vuze youtube-to-mp3
# manual
# https://www.strem.io/download
# --------------------------------------------------
# ESSENTIALS
# --------------------------------------------------
# browsers
brew cask install google-chrome firefox
# support
brew cask install appcleaner the-unarchiver java android-file-transfer mactracker adobe-acrobat-reader
# work
brew cask install google-backup-and-sync evernote
# communication
brew cask install slack skype
# --------------------------------------------------
# FONT
# --------------------------------------------------
# install caskroom-fonts
brew tap caskroom/fonts
# install basic font
brew cask install font-menlo-for-powerline
brew cask install font-open-sans font-open-sans-condensed
brew cask install font-roboto font-roboto-condensed font-roboto-slab font-roboto-mono
brew cask install font-lato font-pt-sans font-fira-code font-fira-mono-for-powerline
# install manager
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cask
brew tap caskroom/versions
# tools
brew cask install abstract
brew cask install sketch sketchpacks
brew cask install craftmanager
# fonts
brew cask install font-open-sans font-open-sans-condensed
brew cask install font-roboto font-roboto-condensed font-roboto-slab
hdiutil attach https://developer.apple.com/design/downloads/SF-Font.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment