Skip to content

Instantly share code, notes, and snippets.

@budougumi0617
Created July 12, 2014 00:34
Show Gist options
  • Save budougumi0617/47d95a962a9453eb5dc3 to your computer and use it in GitHub Desktop.
Save budougumi0617/47d95a962a9453eb5dc3 to your computer and use it in GitHub Desktop.
homeshickとgit submoduleコマンドでプラグインも含めたドットファイルを全て管理する ref: http://qiita.com/budougumi0617/items/07cd145af12c65dbe77c
$git clone git://github.com/andsens/homeshick.git ~/.homesick/repos/homeshick
$printf '\nsource "$HOME/.homesick/repos/homeshick/homeshick.sh"' >> $HOME/.bashrc
$printf '\nsource "$HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash"' >> $HOME/.bashrc
$source ~/.bashrc
$git clone https://github.com/budougumi0617/dotfiles.git ~/.homesick/repos/dotfiles
$homechick cd dotfiles
$mkdir home
$cp ~/.vimrc ~/.homesick/repos/dotfiles/home/
$cp ~/.zshrc ~/.homesick/repos/dotfiles/home/
$git submodule add https://github.com/Shougo/unite.vim.git ~/.homesick/repos/dotfiles/home/.vim/bundle/unite.vim
$git submodule add https://github.com/Shougo/neobundle.vim ~/.homesick/repos/dotfiles/home/.vim/bundle/neobundle.vim
git submodule add https://github.com/robbyrussell/oh-my-zsh.git ~/.homesick/repos/dotfiles/home/.oh-my-zh
$homeshick cd dotfiles
$git submodule init
$git submodule update
$git clone git://github.com/andsens/homeshick.git ~/.homesick/repos/
$printf '\nsource "$HOME/.homesick/repos/homeshick/homeshick.sh"' >> $HOME/.bashrc
$printf '\nsource "$HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash"' >> $HOME/.bashrc
$source ~/.bashrc
$git clone https://github.com/budougumi0617/dotfiles.git ~/.homesick/repos/
$homeshick cd dotfiles
$git submodule init
$git submodule update
$homeshick symlink dotfiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment