Code Monkey home page Code Monkey logo

dotfiles's Introduction

各種ドットファイルの管理用リポジトリ

  • vim
  • zsh
  • screen
  • git

まわりの管理と、初期設定用のpythonスクリプトで構成されています。

vim

~/.vimrcには

" 共通の.vimrc
if filereadable(expand('~/dotfiles/vimrc'))
  source ~/dotfiles/vimrc
endif

" 環境依存の.vimrc
if filereadable(expand('~/.vimrc.local'))
  source ~/.vimrc.local
endif

だけを書き、gitで管理するのはdotfiles/vimrc、gitで管理しづらい環境依存のaliasやpath等は.vimrc.localに書くようにします。

また、.vimディレクトリは、ホームディレクトリで、

$ ln -s ~/dotfiles/.vim .vim

としておき、実体はdotfiles配下の.vimディレクトリを見るようにしておきます。

zsh

vimまわりと同様に、gitで管理する設定と、管理外の設定に分けています。

# 共通のzshrc
[ -f ${HOME}/dotfiles/zshrc ] && source ${HOME}/dotfiles/zshrc

# 環境依存のzshrc
[ -f ${HOME}/.zshrc.local ] && source ${HOME}/.zshrc.local

screen

$HOME/.screenrcは、dotfiles/screenrcのシンボリックリンクになるようにします。

※ セットアップ用スクリプトで行います

git

$HOME/.gitconfigは、dotfiles/gitconfigのシンボリックリンクになるようにします。

※ セットアップ用スクリプトで行います

setup.py

$ ./setup.py

を実行することで、

  • .vimrc作成
  • .vimrc.local作成
  • .vimディレクトリのシンボリックリンク設定
  • .zshrc作成
  • .zshrc.local作成
  • .screenrcのシンボリックリンク設定
  • .gitconfigのシンボリックリンク設定

を自動化します。

dotfiles's People

Contributors

ojimac avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.