Setup developoment tools on MaxOS

Calendar Clock iconCalendar Clock icon

setup

I'll describe how to setup my development tools on a new MaxOS.

Table of contents

# Tools

  • Editor: Neovim
  • Languages: C++、Javascript、VueJS、Python

# Install tools for installing other tools

# Homebrew

公式サイトの最新のコマンドを実行する.

https://brew.sh/

# Register pubkey on Github

ssh-keygen
cat ~/.ssh/id_rsa.pub | pbcopy

Register it on Github website.

# Dotfiles

Install my dotfiles for neovim, tmux, fish, tig and git.

mkdir .config
pushd .config
git clone git@github.com:shunsukehondo/dotfiles.git
ln -s dotfiles/tmux/.tmux.conf ~/.tmux.conf
ln -s dotfiles/nvim nvim
ln -s dotfiles/fish fish
ln -s dotfiles/tig tig
ln -s dotfiles/.gitconfig ~/.gitconfig

# Python

# Install Pyenv

https://github.com/pyenv/pyenv#installation
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
. ~/.bash_profile

# Install latest Python

pyenv install 3.7.4

# NodeJS

# Install NVM

Execute the latest command described on the official website.

https://github.com/nvm-sh/nvm

The command looks something like the below.

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

# Install latest NodeJS

nvm install node

node is an alias for the latest stable version of NodeJS.

# Neovim

pyenv local 3.7.4
pip install neovim
brew install neovim
brew tap homebrew/cask-fonts 
brew cask install font-hack-nerd-font 

Open termail preferences and set font to Nerd font.

Open nvim and execute the commands below.

:PlugInstall
:CocInstall coc-tsserver coc-eslint coc-json coc-prettier coc-css coc-vetur coc-python

Create aliases for neovim (Just delete them when you no longer need them).

ln -s /usr/local/bin/nvim /usr/local/bin/vi 
ln -s /usr/local/bin/nvim /usr/local/bin/vim

# Other tools

# Google Japanese Input

Go to the official website

# Install Ripgrep, Tig, Tmux, Fish

brew install ripgrep tig tmux fish
curl -L https://get.oh-my.fish | fish

Done. Happy coding!


Remote freelancer. A web and mobile application enginner.
Traveling around the world based on East Asia.
I'm looking forward to your job offers from all over the world!

Offer jobs or contact me!

Comments