Skip to content

newlight77/macosx

Repository files navigation

Mac OS setup guide

This repository provides scripts to setup tools on your mac, you may follow them step by step, as described below :

  • Install homebrew
  • Install basics tools, using homebrew (curl, jq, htop, ncdu, tmux, HTTPie, tree, wget, mani, cmake, iterm)
  • Generate SSH key and GPG
  • Install & configure git
  • Install Development Stack (python, java, node, vs code, idea, sqlectron, squirrelsql, postman)

Note that bash, zsh and oh-my-zsh are covered by the dotfiles repository to customize dotfiles (bash, zsh, fish, git, nvim).

Install Steps

  1. Install homebrew
curl -L https://raw.githubusercontent.com/newlight77/macosx/main/install-homebrew.sh | bash
  1. Install basic tools
curl -L https://raw.githubusercontent.com/newlight77/macosx/main/install-basic-tools.sh | bash
  1. Install git
echo '
GIT_USER_NAME='Your name'
GIT_USER_EMAIL='Your email'
GIT_EDITOR=vi
#GIT_EDITOR=nano
' > .env

curl -L https://raw.githubusercontent.com/newlight77/macosx/main/install-git.sh | bash

git config --global credential.helper osxkeychain
  1. Install and Configure SSH & PGP
echo '
PASSPHRASE=your passphrase for ssh key and gpg
' >> .env
curl -L https://raw.githubusercontent.com/newlight77/macosx/main/install-ssh-pgp.sh | bash
  1. Install ssh-agent to keep passphrase in memory for ssh private key
curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/util/ssh-agent.sh         -o ${HOME}/.config/util/ssh-agent.sh

chmod u+x ${HOME}/.config/util/ssh-agent.sh

# run ssh-agent
${HOME}/.config/util/ssh-agent.sh
  1. Development stacks and IDEs
  • Install python Stack
curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/install-python.sh | bash
  • Install java stack
curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/install-java.sh | bash
  • Install node Stack
curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/install-node.sh | bash
  • Install IDEs
curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/install-ides.sh | bash

All-in-one step

You may run the all-in-one script below :

curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/install-all.sh | bash

Bash & Zsh customization

The is customization is covered by the dotfiles repository.

curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/customize-bash.sh | bash
curl -L https://raw.githubusercontent.com/newlight77/dotfiles/main/customize-zsh.sh | bash

You will have to open a new tab/terminal to spawn a new zsh console in order to customize your oh-my-zsh.

Manual task

1. Ssh-keygen

The ssh key generation is covered by install-ssh-pgp.sh. For more detail, refer to setup ssh.

Once the ssh key is generated, you will have to copy/paste (pbcopy to clipboard) and declare it on your github asetting.

2. GPG personal information

The gpg key generation is covered by install-ssh-pgp.sh. For more detail, refer to setup gpg.

Once the gpg key is generated, you will have to copy/paste (pbcopy to clipboard) and declare it on your github asetting.

More

Going further :

How-To

You may refer to the documentation below to walk you through all the steps covered by scripts above :

TODO

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published