Skip to content

dawidpereira/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My dotfiles configuration

Description

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.

Installation

Prerequisites

In terms of valid installation of the dotfiles, the following prerequisites are required:

Creation of new repository

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

Cloning the repository

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published