Lazytangent / cfg

Config alias replacement, built in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cfg

Usage

Installation

With go CLI directly from GitHub Repository

go install github.com/lazytangent/cfg@HEAD

The @HEAD bit is necessary since I don’t tag new updates very often.

From a cloned repo

git clone https://github.com/Lazytangent/cfg
cd cfg
go install .

Notes

Git code snippets

status

Updated but not yet committed

❯ config status
On branch main
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   alacritty.yml

no changes added to commit (use "git add" and/or "git commit -a")

In the terminal, the modified file line is red.

Staged files but not yet committed

❯ config status
On branch main
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   alacritty.yml
	new file:   keybinds.yml

Untracked files not listed (use -u option to show untracked files)

In the terminal, the modified and new file lines are green.

Newly committed but not yet pushed

❯ config status
On branch main
nothing to commit (use -u to show untracked files)

There seems to be some variance in the output for this.

No color for this version.

About

Config alias replacement, built in Go


Languages

Language:Go 97.1%Language:Makefile 2.9%