My .files optimized for personal needs
Install GNU stow utility:
$ sudo apt-get install stow
$ brew install stow
$ sudo pkg_add stow
Clone this repo into ~/.dotfiles folder:
$ mkdir ~/.dotfiles
$ cd ~/.dotfiles
$ git clone https://github.com/nafigator/dotfiles.git .
Backup your previous dotfiles:
$ cd && mkdir .dotfiles.bkp
$ mv .profile .bashrc .bash_aliases .bash_logout .gitconfig .gitignore .dotfiles.bkp
Then use stow utility to create symlinks:
$ stow bash
$ stow git
$ . ~/.profile
cd ssh/.ssh
# gpg --output config.gpg --encrypt --recipient <email> config
gpg -o config.gpg -e -r <email> config
git commit && git push
git pull
cd ssh/.ssh
# gpg --output config --decrypt config.gpg
gpg -o config -d config.gpg
git update-index --assume-unchanged mc/.config/mc/ini