自分の設定ファイルを集めたディレクトリ。基本的な使い方としては、各種シンボリックリックをホームディレクトリ配下などに貼っていく。
ln -s ~/dev/github.com/koheitakahashi/dotfiles/.zshrc ~/.zshrc
ln -s ~/dev/github.com/koheitakahashi/dotfiles/.vimrc ~/.vimrc
ln -s ~/dev/github.com/koheitakahashi/dotfiles/.fzf.zsh ~/.fzf.zsh
ln -s ~/dev/github.com/koheitakahashi/dotfiles/.gitconfig ~/.gitconfig
ln -s ~/dev/github.com/koheitakahashi/dotfiles/.gitignore_global ~/.gitignore_global
ln -s ~/dev/github.com/koheitakahashi/dotfiles/.starship ~/.starship
ln -s ~/dev/github.com/koheitakahashi/dotfiles/.Brewfile ~/.Brewfile
ln -s ~/dev/github.com/koheitakahashi/dotfiles/bin ~/bin
ln -s ~/dev/github.com/koheitakahashi/dotfiles/com.googlecode.iterm2.plist ~/com.googlecode.iterm2.plist
ln -s ~/dev/github.com/koheitakahashi/dotfiles/fish .config/
ln -s ~/dev/github.com/koheitakahashi/dotfiles/karabiner ~/
.gitconfig は会社とプライベートで署名に残す Email を変えたいため、sample をおいて、それぞれの PC で書き換えることを想定している。.gitconfig_sample をコピーして、.gitconfig に rename して書き換え。その後ホームディレクトリに置く。
.gitconfig_sample のメールアドレスを変更して、ファイル名を変更してホームディレクトリ配下に置く。
以下を実行。
brew bundle
-
fisher をインストール
-
プラグインをインストール
dotfiles/fish/fish_plugins
にあるプラグインをインストールする
ref: Shell Integration - Documentation - iTerm2 - macOS Terminal Replacement
curl -L https://iterm2.com/shell_integration/install_shell_integration.sh | bash
curl -L https://iterm2.com/shell_integration/zsh \
-o ~/.iterm2_shell_integration.zsh
starship をそのまま使うと、文字化けするため以下を実施。
M1 と Intel Mac で fzf がインストールされている場所のパスが異なるため、work と private にそれぞれ .fzf.zshを配置している。 環境構築時はそのパスでシンボリックリンクを作成する。
vimnium で vimium-options.json の設定をインポート