Dotfiles
Clone dotfiles into ~
$ cd ~
$ git clone git@github.com:aminsaied/dotfiles.git
Delete all the dotfiles in ~
, e.g.,
$ rm ~/.bashrc
or move them into dotfiles if you don't have it already
$ mv ~/.bashrc ~/dotfiles/.bashrc
Symlink from the dotfiles to ~
$ ln -nfs /home/amin/dotfiles/.bashrc /home/amin/.bashrc
These steps are automated in the dotfiles repo's bootstrap.sh
script. Note, I do not recommend blindly running this script. It is very simple, so please read it and see what it is doing.
References
I learned this trick from this youtube video: MIT Missing Semester.
Here's a related blog.