From d086d3b943748dcfb5c2d69e7bdd4ff4ed046f31 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sat, 30 Nov 2024 14:38:52 -0600 Subject: [PATCH] Add Find System-wide Config File For User as a jj TIL --- README.md | 3 ++- jj/find-system-wide-config-file-for-user.md | 25 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 jj/find-system-wide-config-file-for-user.md diff --git a/README.md b/README.md index 11e172d..2cb3c91 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1521 TILs and counting..._ +_1522 TILs and counting..._ --- @@ -573,6 +573,7 @@ _1521 TILs and counting..._ ### jj - [Colocate jj And git Directories For Project](jj/colocate-jj-and-git-directories-for-project.md) +- [Find System-wide Config File For User](jj/find-system-wide-config-file-for-user.md) ### jq diff --git a/jj/find-system-wide-config-file-for-user.md b/jj/find-system-wide-config-file-for-user.md new file mode 100644 index 0000000..0b06941 --- /dev/null +++ b/jj/find-system-wide-config-file-for-user.md @@ -0,0 +1,25 @@ +# Find System-wide Config File For User + +The `jj` CLI can be configured in a couple different places. When I recently +ran a `jj config` command, I was curious where specifically it was getting set. +Those changes didn't appear in the repo's config (`./.jj/repo/config.toml`). +That makes sense since it would only apply to that repo. So, where is the +system-wide config file? + +The following commond shows where on your machine it is located. + +```bash +$ jj config path --user +/Users/jbranchaud/Library/Application Support/jj/config.toml +``` + +Now, the next time I set a config like this: + +```bash +$ jj config set --user ui.paginate never +``` + +or want to check what other config options are set to, I can visit that path +and take a look. + +[source](https://github.com/martinvonz/jj/blob/main/docs/config.md)