gh ssh-key add ~/.ssh/id_ed25519.pub --type authentication
clone mac.config (This repo)
git clone git@github.com:tomohung/mac.config.git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle
https://github.com/so-fancy/diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
ln -s ~/mac.config/zshrc ~/.zshrc
make sure iTerm is using zsh, then close iTerm and open again will automatical update
vim plugin manager switch to vim-plug, it's much simpler.
Install
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
Neovim
mkdir ~/.config/nvim
ln -s ~/mac.config/vimrc ~/.config/nvim/init.vim
- open nvim
:PlugInstall# not necessary for first time
Install
if [ ! -d ~/.tmux/plugins ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
Run
ln -s ~/mac.config/tmux.conf ~/.tmux.conf
open tmux > prefix + I -> install plugin
Navigate to "Preferences > Profiles > PROFILE > Command > Send text at start" and set it to:
tmux attach -t tomo || tmux new -s tomo zsh
To enable this:
- Go into iTerm2's preferences.
- Go to the "General" > "Selection" tab.
- Check "Applications in terminal may access clipboard"
Appearnace > Colors > Color Presets > Import
Pick the color file from this repo.
Enable key bindings
$(brew --prefix)/opt/fzf/install
run
asdf plugin add ruby
asdf install ruby latest
ln -s ~/mac.config/tigrc ~/.tigrc
Install
brew install --cask ghostty
Setup config symlink
mkdir -p ~/.config/ghostty
ln -s ~/mac.config/ghostty.config ~/.config/ghostty/config
Note: On macOS,
cmd+,may open a default config file at~/Library/Application Support/com.mitchellh.ghostty/configinstead of the symlinked one. Remove it if it exists:rm ~/Library/Application\ Support/com.mitchellh.ghostty/config