From b8322b1717ff1c755e27ce248ef09ef5aaaf9cfd Mon Sep 17 00:00:00 2001 From: Oliver Ford Date: Wed, 28 Jul 2021 20:14:00 +0100 Subject: [PATCH] Stop git-ignoring typically checked in lock files --- git/ignore | 6 +++++- ripgrep/.profile | 1 + ripgrep/aconfmgr.sh | 2 ++ ripgrep/ripgreprc | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 ripgrep/.profile create mode 100644 ripgrep/aconfmgr.sh create mode 100644 ripgrep/ripgreprc diff --git a/git/ignore b/git/ignore index e14cf773..bda8df54 100644 --- a/git/ignore +++ b/git/ignore @@ -1,5 +1,5 @@ +*~ *.DS_Store -*.lock *.log *.log.* **/node_modules/* @@ -7,3 +7,7 @@ *.swo *.swp **/venv/* + +*.lock +!yarn.lock +!Cargo.lock diff --git a/ripgrep/.profile b/ripgrep/.profile new file mode 100644 index 00000000..bb3622c8 --- /dev/null +++ b/ripgrep/.profile @@ -0,0 +1 @@ +export RIPGREP_CONFIG_PATH="$XDG_CONFIG_HOME/ripgrep/ripgreprc" diff --git a/ripgrep/aconfmgr.sh b/ripgrep/aconfmgr.sh new file mode 100644 index 00000000..0138dfba --- /dev/null +++ b/ripgrep/aconfmgr.sh @@ -0,0 +1,2 @@ +# shellcheck shell=bash +AddPackage ripgrep diff --git a/ripgrep/ripgreprc b/ripgrep/ripgreprc new file mode 100644 index 00000000..9c4cfdb3 --- /dev/null +++ b/ripgrep/ripgreprc @@ -0,0 +1 @@ +--glob=!*.lock