Go to file
kjuulh 39dc4ae15c
All checks were successful
continuous-integration/drone/push Build is passing
chore: make variant for the other shell commands
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-12-22 14:52:05 +01:00
crates/kignore chore: make variant for the other shell commands 2024-12-22 14:52:05 +01:00
.drone.yml feat: add force and cuddle 2024-12-22 11:36:25 +01:00
.gitignore fix: ignore cuddle 2024-12-22 11:40:31 +01:00
Cargo.lock chore: make variant for the other shell commands 2024-12-22 14:52:05 +01:00
Cargo.toml chore(release): v0.3.0 (#89) 2024-12-22 13:01:48 +01:00
CHANGELOG.md chore(release): v0.3.0 (#89) 2024-12-22 13:01:48 +01:00
cuddle.yaml feat: use kignore 2024-12-22 11:38:10 +01:00
LICENSE-MIT with license 2022-10-21 02:00:19 +02:00
README.md chore: make variant for the other shell commands 2024-12-22 14:52:05 +01:00
renovate.json Add renovate.json 2022-10-25 20:50:32 +00:00

Git ignore (kignore)

Is an extension for easily adding ignored files to .gitignore files, when added it will by default also try to remove any files matching the pattern added to .gitignore, this is by default also run in interactive mode, giving you the option to confirm or deny

$ kignore 'node_modules/'
found .gitignore .../some-path/.gitignore
Added node_modules/ to .gitignore
Removed node_modules/ from git index
$ git ignore 'node_modules/'
found .gitignore .../some-path/.gitignore
Added node_modules/ to .gitignore
Removed node_modules/ from git index

Installation

Cargo

Cargo will only pull the kignore command and won't add a subcommand to `git.

$ cargo install kignore
$ cargo binstall kignore # binstall will warn that git.front.kjuulh.io isn't a valid repo, it is still installable though

Post install

To get the git ignore subcommand working you will need to have the file git-ignore available on your path

# zsh
eval "kignore init zsh"

# shell
eval "kignore init sh"

# bash
eval "kignore init bash"