Skip to content

jensgreen/commitihag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

commitihag

kommit ihåg [kɔmɪt ɪˈhoːɡ] verb, ᴘsᴛ.
 ▸ remembered

commitihag is a tiny command-line utility that helps you remember to commit your dotfiles.

Once per day when starting a new shell, commitihag will check ~/.dotfiles for uncommitted changes.

If the state is dirty, commitihag will gently remind you to commit your changes:

Screenshot

Usage

Just start a new shell.

commitihag will leave you a message you when you need to commit. At most once per day.

Install

Run these commands to download and setup commitihag

# 1. Download script
curl https://raw.githubusercontent.com/jensgreen/commitihag/master/commitihag -o ~/bin/commitihag

# 2. Make executable
chmod +x ~/bin/commitihag

# 3. Run commitihag when starting a bash or zsh shell
echo "
# Remember to commit dotfiles
commitihag" | tee -a ~/.bashrc ~/.zshrc

Ignoring files

To ignore certain dotfiles, add IGNORE=<globs> to ~/.commitihagrc. For example, to ignore vimrc and VS Code's configs:

IGNORE=vimrc Library/Application\ Support/Code/User/*.json

About

📝 a dotfiles commit nudger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages