Note
This should work fine with MacOS, yet to be tested on other OS.
cd ~
# To install submodules
git clone --recursive https://github.com/karmingc/.dotfiles.git
cd .dotfiles
To start off, some tools will require manual installation. Navigate to the new and run it to check which tools are left to install.
After that is done, run brew install stow
(https://formulae.brew.sh/formula/stow) to manage neatly the directory tree.
Once you stow
'd (check stow) everything. Run brew bundle
, which installs the other necessary tools through brew.
In general, you will need to follow these steps.
- Move every directory or file under the .dotfiles directory.
- Once the directory or file is under the .dotfiles directory, run:
stow <directory/file>
- Once this is done, you should see the same directory tree in your $HOME directory.
For example, there is .zshrc
file in the $HOME directory.
- We create a zsh folder in
.dotfiles
directory
# in the .dotfiles directory
$ mkdir zsh
- Move the .zshrc to zsh
# in the $HOME directory
$ mv .zshrc .dotfiles/zsh
- Run stow zsh to symlink all the appropriate packages
# in the .dotfiles
$ stow zsh
- Make a change in the
.dotfiles/zsh/.zshrc
folder, and you should see the change reflected in the $HOME/.zshrc file