- リポジトリをクローンする。
git clone --recursive [email protected]:takezoh/dotfiles.git .dotfiles
- セットアップスクリプトを実行する。(何度か実行しないといけないかも)
bash .dotfiles/install.sh
- システム環境設定 > ユーザーとグループ > 詳細オプション > ログインシェル を zsh に変更する。
- ターミナルを再起動する。
端末限定の設定は ~/.local/config/zshrc に定義する
デフォルトのキーバインドは Vim モード。変更する場合は、 ~/.local/config/zshrc で変更する。
bindkey -e
個人設定は ~/.local/config/gitconfig に定義する
[ghq]
root = ~/src
[core]
excludesfile = ~/.local/config/gitignore ; 個人の global な gitignore
sshCommand = ssh -i ~/.ssh/id_rsa_git ; デフォルト以外の鍵を使うなら指定する
[user]
name = Takezoh
email = [email protected]
[includeIf "gitdir:~/dev/anyuser/"]
path = ~/.local/config/gitconfig-anyuser
コンフリクトしているファイルをVimで開く
git edit-unmerged