shとbashで使用する共通設定
zshで使用する共通設定
- gitコマンドの補完設定
- ターミナルの表示にブランチ名を表示
- .profile_commonをホームディレクトリにコピー
- .profileに以下を追記
if [ -f ~/.profile_common ]; then
source ~/.profile_common
fi
- 補完スクリプトの取得
# .git-completion.bashはv2.35.8以降になると未対応のコマンドがあるのでv2.35.8を指定
curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/v2.35.8/contrib/completion/git-completion.bash
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
- .profile_commonをホームディレクトリにコピー
- .bashrcに以下を追記
if [ -f ~/.profile_common ]; then
source ~/.profile_common
fi
- 補完スクリプトの取得
curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
- .zshrc_commonをホームディレクトリにコピー
- .zshrcに以下を追記
if [ -f ~/.zshrc_common ]; then
source ~/.zshrc_common
fi
- .zshディレクトリをホームディレクトリに作成
- 補完スクリプトの取得
curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
curl -o ~/.zsh/_git https://raw.githubusercontent.com/git/git/v2.35.8/contrib/completion/git-completion.zsh
- .vimと.vimrcをホームディレクトリにコピー
- NeoBundleのインストール
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
- vimを起動してNeoBundleのインストール
# 自動インストール用の表示が出るので、そのままEnter
# 自動インストール用の表示が出なかった場合は以下を実行
:NeoBundleInstall