From ab64b138bc1347ef5e8d4051b22cf966e8214cd0 Mon Sep 17 00:00:00 2001 From: fstp Date: Thu, 8 May 2025 13:53:44 +0200 Subject: [PATCH] fix: update sed regex for extracting copilot oauth in README.md Previous example was cut of and didn't render properly in the markdown. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dabc40e..ba9c71c 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Below is an example of the relevant configuration part enabling some of these. T secret = { "bash", "-c", - "cat ~/.config/github-copilot/hosts.json | sed -e 's/.*oauth_token...//;s/\".*//'", + "cat ~/.config/github-copilot/hosts.json | sed -n 's/.*"oauth_token":"\([^"]*\)".*/\1/p'", }, },