In this repository I store my dotfiles configuration. This is a simple way to keep my configuration files in sync across different machines. If you find something useful, feel free to use it.
In terms of valid installation of the dotfiles, the following prerequisites are required:
- ITerm2 (you may use other terminal simulator)
- Starship
- zsh-syntax-highlighting
- tmux
- TPM
- LazyVim
If you need to move your current configuration to git repository you can do it by following these steps:
git init --bare $HOME/.cfg #Only if you are creating new repository
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
echo ".dotfiles" >> .gitignore
git clone --bare <git-repo-url> $HOME/.cfg
config checkout
Following error may occurred if you have some of the configuration files already present in your home directory:
error: The following untracked working tree files would be overwritten by checkout:
.bashrc
.gitignore
Please move or remove them before you can switch branches.
Aborting
Then it's needed to backup the files and try again.