Skip to content

k02ka/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

よく使う設定ファイルをまとめたもの

.profile_common

shとbashで使用する共通設定

.zshrc_common

zshで使用する共通設定

shellの設定ファイル

  • gitコマンドの補完設定
  • ターミナルの表示にブランチ名を表示

設定方法

sh

  1. .profile_commonをホームディレクトリにコピー
  2. .profileに以下を追記
if [ -f ~/.profile_common ]; then
    source ~/.profile_common
fi
  1. 補完スクリプトの取得
# .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

bash

  1. .profile_commonをホームディレクトリにコピー
  2. .bashrcに以下を追記
if [ -f ~/.profile_common ]; then
    source ~/.profile_common
fi
  1. 補完スクリプトの取得
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

zsh

  1. .zshrc_commonをホームディレクトリにコピー
  2. .zshrcに以下を追記
if [ -f ~/.zshrc_common ]; then
    source ~/.zshrc_common
fi
  1. .zshディレクトリをホームディレクトリに作成
  2. 補完スクリプトの取得
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

  1. .vimと.vimrcをホームディレクトリにコピー
  2. NeoBundleのインストール
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
  1. vimを起動してNeoBundleのインストール
# 自動インストール用の表示が出るので、そのままEnter

# 自動インストール用の表示が出なかった場合は以下を実行
:NeoBundleInstall

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •