From fe2bd1a0bd3c4f06706217a520fe7093e39dcb44 Mon Sep 17 00:00:00 2001 From: Max von Webel Date: Thu, 7 Nov 2024 18:19:54 +0100 Subject: [PATCH] Update user-var-changed.md By default base64 inserts a line break at some column which will truncate the user var. `-w 0` disables line wrapping --- docs/config/lua/window-events/user-var-changed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/lua/window-events/user-var-changed.md b/docs/config/lua/window-events/user-var-changed.md index a7b23933ff7..24a85b8a2dd 100644 --- a/docs/config/lua/window-events/user-var-changed.md +++ b/docs/config/lua/window-events/user-var-changed.md @@ -8,7 +8,7 @@ used to set a user var. You can use something like the following from your shell: ```bash -printf "\033]1337;SetUserVar=%s=%s\007" foo `echo -n bar | base64` +printf "\033]1337;SetUserVar=%s=%s\007" foo `echo -n bar | base64 -w 0` ``` to set the user var named `foo` to the value `bar`.