Make develop evironment
1. Install Xcode Command Line Tools
To use gcc, make, etc.
xcode-select --install
2. homebrew, Cask
homebrew (OS X package manager) and install Cask (To install GUI-based application)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/narow/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install cask
3. Git
git is already installed, but it’s outdated. So install the latest version. And Connect to git
brew install git
git config --global user.name "OwO-v"
git config --global user.email "ions@kakao.com"
git config --global core.precomposeunicode true
git config --global core.quotepath true
ssh-keygen
cat ~/.ssh/id_rsa.pub
Copy all keyvalue including hostname and format. and paste it in Gibhub -> Settings -> SSH and GPG keys -> New SSH Key
4. iTerm2
Recently brew changed the format of usage Cask “brew cask install” to “brew install –cask”
brew install --cask iterm2
5. zsh with oh-my-zsh
brew install zsh zsh-completions
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
6. zsh plugins install
More plugins are here
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# zsh-theme spaceship
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
and insert plugins and theme in ~/.zshrc
(Add to existing column)
# Insert contents
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
# Replace theme
ZSH_THEME="spaceship"
finally, apply settings
source ~/.zshrc
7. NeoVim
Install neovim instead of vim which is installed by default in OS X
brew install neovim
brew tap homebrew/cask-fonts
brew install font-meslo-lg-nerd-font
Next, setup environment to use neovim instead of vi and vim open ~/.zshrc
alias vim="nvim"
alias vi="nvim"
alias vimdiff="nvim -d"
export EDITOR=/usr/local/bin/nvim
apply settings again
source ~/.zshrc
8. Install SpaceVim
curl -sLf https://spacevim.org/install.sh | bash
9. Snazzy colorscheme
mkdir ~/.SpaceVim.d/
mkdir ~/.SpaceVim.d/colors
curl https://gist.githubusercontent.com/subicura/91696d2da58ad28b5e8b2877193015e1/raw/6fb5928c9bda2040b3c9561d1e928231dbcc9184/snazzy-custom.vim -o ~/.SpaceVim.d/colors/snazzy-custom.vim
open `~/.SpaceVim.d/init.toml”
[options]
colorscheme = "snazzy-custom"
enable_guicolors = true
statusline_separator = "arrow"
enable_tabline_filetype_icon = true
enable_statusline_mode = true
statusline_unicode_symbols = true
10. Install etc.
# text-based git Highlightng
brew install tig
# Json Highlighting
brew install jq
# cat Highlighting "~/.zshrc"
brew install bat
alias cat="bat"
# Open Terminal from Finder
brew install --cask openinterminal-lite
# Terminal recording based on text
brew install asciinema