Skip to content

Latest commit

 

History

History
90 lines (62 loc) · 1.83 KB

File metadata and controls

90 lines (62 loc) · 1.83 KB

dotfiles

Basic

1. Homebrew

Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Clone repo

Create ssh key:

ssh-keygen -t rsa -C "your_email@example.com"
ssh-add ~/.ssh/id_rsa

Copy and paste the public key into github account

pbcopy < ~/.ssh/id_rsa.pub

Now can clone the repo: git clone git@github.com:danielfrg/dotfiles.git

3. Brew packages

Install: brew bundle

Others

conda

ln -sF $(pwd)/.condarc ~/.condarc

xonsh

ln -sf $(pwd)/.xonshrc ~/.xonshrc

Ohmyzsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

ln -sf $(pwd)/.zshrc ~/.zshrc
rm -rf ~/.oh-my-zsh/custom/plugins
ln -sF $(pwd)/.oh-my-zsh/custom/plugins ~/.oh-my-zsh/custom

Git

ln -sf $(pwd)/.gitconfig ~/.gitconfig
ln -sf $(pwd)/.gitignore_global ~/.gitignore_global

Atom

bash .atom/packages.sh

ln -sf $(pwd)/.atom/projects.cson ~/.atom/projects.cson
ln -sf $(pwd)/.atom/config.cson ~/.atom/config.cson
ln -sf $(pwd)/.atom/init.coffee ~/.atom/init.coffee
ln -sf $(pwd)/.atom/keymap.cson ~/.atom/keymap.cson
ln -sf $(pwd)/.atom/styles.less ~/.atom/styles.less
ln -sf $(pwd)/.atom/snippets.cson ~/.atom/snippets.cson

# My packages:
git clone git@github.com:danielfrg/atom-nbviewer.git ~/workspace/atom-nbviewer
pushd ~/workspace/atom-nbviewer
apm install
popd
ln -sF ~/workspace/atom-nbviewer ~/.atom/packages/nbviewer

# ln -sF ~/workspace/dot-files/no-highligh-syntax ~/.atom/packages/no-highligh-syntax

VI

ln -sF $(pwd)/.vim ~/.vim
ln -sf $(pwd)/.vimrc ~/.vimrc

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall