Skip to content

Atomsoldat/cfg-files

Repository files navigation

What is this?

This repo contains Leon's config files. It is a bare git repository, i.e. it does not have a working tree.

Creation

git init --bare $HOME/.cfg.git
alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'" >> $HOME/.bashrc

Setup

 git clone --bare [email protected]:Atomsoldat/cfg-files.git $HOME/.cfg.git
 alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'
 config config --local status.showUntrackedFiles no
 config restore --staged $HOME
 config checkout $HOME
# to checkout the submodules containing awesome-wm-widgets, prezto and possibly others
git submodule init
git submodule update

The content of .git/config will not get pushed to remote repositories, so it must be recreated when the repo gets checked out. Currently, we only use one option which can be set as follows:

config config --local status.showUntrackedFiles no

Once all untracked files are either commited or ignored, the option should be unset again.

Usage

config status
# if untracked files are not displayed by default
config status --untracked-files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published