Skip to content

ccalobeto/setup-mac

Repository files navigation

About the project

List of the steps for setup macs for software development

Software development

Follow installation the sequence

  1. xcode
  2. Homebrew
  3. VsCode
  4. Fnm
  5. NodeJs (install it with Fnm -see in Configurations)
  6. Svelte
  7. miniconda
  8. Python (install it with miniconda -see in Configurations)
  9. R Studio (optional)
  10. Chrome
  11. Gdal
  12. Docker (optional)
  13. Themes and highlighting for terminal

Global configuration

.* files are for global configuration and they are located in home directory. .zprofile, .zshrc are some of these kind of files.

Go to home directory

z ~

Software setup

VScode

Initial

Go to the palette and choose Install 'code' command in PATH.

Use as a shortcut to your projects

code .

Configurations

Go to command palette and select Preferences: user settings

  • Cursor blinking: cursos expandido.
  • Linked editing: actívalo para editar html tags apertura y cierre.
  • bracket pair colorization: establece colores para () y {} en tu código dependiendo de la profundidad.
  • brackets pair: true para colorear líneas verticales.
  • breadcrums: elimina el breadcrum de arriba.
  • sticky scroll: fija una guía y te avisa en que función o archivo te encuentras.

List extensions

  • code --list-extensions --show-versions > vscode-extensions.vsix
  • Then import them as an VSIX file

fnm

install last node

fnm install --latest

install specific node

fnm install 20.9.0

node list

fnm list

change node version

fnm use 20.9.0

node version

node --version

set default node version

fnm alias 20.9.0 default

Python with miniconda

Use miniconda environment for every python installation. If you install pytorch, create a new environment too.

Create environment

conda create --name py310

activate environment

conda activate py310

list environments

conda env list

install python

conda install python=3.10

check installation

python --version

leave the environment

conda deactivate

List of mac apps

Go to finder in Aplicaciones and saved in apps.txt or

pkgutil --pkgs /Applications | grep -v '^com\.apple\.pkg' > apps.txt

List of packages

python: pip

pip list > pip-pkgs.txt

js

npm list -g --depth=0 --json > js-packages.txt

brew (check the used ones)

brew list --versions | grep -v ^lib > brew-packages.txt

conda

conda env export --from-history > conda-pkgs.txt

New Terminal

Terminal installation

Install hyper.js which replace your default terminal with an styled terminal and ohmyz to styled the prompt.

  • Go to My zsh and install, don't forget to re install your hyper terminal.
  • Go to powerline/fonts, download the repository and add the folder Mesio Dotted to your mac fonts book.
  • Go to hyper/preferences and add the font

Now style the prompt

  • Go to cobalt2-iterm and download the theme.
  • Move the theme to zshrc directory
open ~/.oh-my-zsh/themes
  • Open .zshrc and modify ZSH_THEME="cobalt2". It will display

  • Go to ohmyzsh to see the alias. Test it

  • If you migrate from bash to zsh, Add the following to your .zshrc profile:

eval "$(fnm env --use-on-cd --shell zsh)"

Zsh Syntax Highlightting

Hightlights what you type in terminal

  • Go to zsh-syntax-highlighting and look at INSTALL.md
  • Because you have already install oh-my-zsh you only need to clone and activate the plugin in ~/.zshrc. Restart zsh.

References

About

Mac Configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published