Felix Nehrke 008d103785 Add possibility to configure local settings
Sometimes I have sensitive and system-specific configurations for bash
which I want to save. This change is a quick solution to enable this.

Maybe another solution involves a setup with encrypted secrets like
ansible handles secrets. I should evaluate such a solution in future.
2022-08-12 10:53:02 +02:00
2022-06-14 00:09:40 +02:00
2022-02-28 11:46:49 +01:00
2022-02-28 11:46:49 +01:00
2022-02-28 23:41:15 +01:00

Dotfiles

Ill use the "bare repository and alias method" to track my dotfiles.

Usage

Use all your familiar git commands but with config instead of git.

config status
config add .vimrc
config commit -m "Add vimrc"
config add .config/redshift.conf
config commit -m "Add redshift config"
config push

Setup

Quick setup
curl -s https://gitea.nehrke.info/nemoinho/dotfiles/raw/branch/main/.config/dotfiles/setup-machine.sh | bash
Clone on new machine
GIT_DIR=$HOME/Development/nemoinho/gitea.nehrke.info/nemoinho/dotfiles
GIT_REMOTE=git@gitea.nehrke.info:nemoinho/dotfiles.git
git clone --separate-git-dir=$GIT_DIR $GIT_REMOTE $HOME/tmp-dotfiles
rm -r ~/tmp-dotfiles
alias config='/usr/bin/git --git-dir=$GIT_DIR --work-tree=$HOME'
config checkout
config config --local status.showUntrackedFiles no
Initial setup
GIT_DIR=$HOME/Development/nemoinho/gitea.nehrke.info/nemoinho/dotfiles
GIT_REMOTE=git@gitea.nehrke.info:nemoinho/dotfiles.git
git init --bare -b main $GIT_DIR
alias config='/usr/bin/git --git-dir=$GIT_DIR --work-tree=$HOME'
config config status.showUntrackedFiles no
config remote add origin $GIT_REMOTE
config push -u origin main
Description
No description provided
Readme 1.6 MiB
Languages
Lua 82.3%
Shell 10.8%
Vim Snippet 6.3%
Python 0.6%