This repo is intended for personal dotFiles such as .bashrc, .bash_profile, atom configs, etc.
- Step 1 - backup or mv your current dotFiles ($ mv .bashrc .bashrc_orig)
- Step 2 - clone this repo
- Step 3 - add personal dotFiles to this repo in a directory for your first name
- ~/.bash_profile => ~/your-dotfiles-dir/your-first-name/bash/bash_profile
- ~/.bashrc => ~/your-dotfiles-dir/your-first-name/bash/bashrc
- ~/.atom/config.cson => ~/your-dotfiles-dir/your-first-name/atom/config.cson
- ~/.atom/styles.less => ~/your-dotfiles-dir/your-first-name/atom/styles.less
-
Atom packages list => ~/your-dotfiles-dir/your-first-name/atom/packages.txt
- to generate this file run: apm list --installed --bare > ~/your-dotfiles-dir/your-first-name/atom/packages.txt
-
Step 4 - create symlink to each dotFile: ln -nsf ~/your-dotfiles-dir/your-first-name/bash/bashrc ~/.bashrc
- n = treat LINK_NAME as a normal file if it is a symbolic link to a directory
- s = make symbolic links instead of hard links
- f = remove existing destination files
Export: apm list --installed --bare > ~/directory-name/file-name
Import: apm install --packages-file ~/directory-name/file-name