-
Whichever platform you are on make sure you have
stow
andgit
For ubuntu
sudo apt install git stow
-
Clone this repo in home dir
git clone https://github.com/patheticGeek/.dotfiles
-
Run the install script
cd .dotfiles && ./dotfiles.sh setup
The folders to be used are stored in
dotfiles_folders
. It is a space separated list.
Now ./dotfiles.sh
script will also be available as dotfiles
as it is aliased in shell.
I'm using stow to manage the symlinks and git to version and backup.
This is inspired by https://www.youtube.com/watch?v=tkUllCAGs3c
Each folder in this repo will have its contents (files and folders) placed as symlink in the home dir.
So if i have a file and folder such as zsh/.zshrc
, zsh/.oh-my-zsh/custom
and then run stow zsh
it will create symlinks at ~/.zshrc
and ~/.oh-my-zsh/custom
.
The personal
folder is a submodule, it is a private repo where i have my personal keys and stuff.
Can do so via dotfiles [add|delete] FOLDER FILE
command. e.g.
# Will add file at correct path to others folder
dotfiles add others ~/.config/mimeapps.list
# Will remove file from others folder and put it at original path
dotfiles delete others ~/.config/mimeapps.list
Run