diff --git a/README.md b/README.md index c75a5f8b1..75c6e431e 100644 --- a/README.md +++ b/README.md @@ -1363,6 +1363,17 @@ cb p
+

CLIPBOARD_ACTION   CB will set this to the current action when running a script.

+ +Start with a script. +```sh +$ cb script ls +$ cb history +# Now, whatever script CB runs will have access to the CLIPBOARD_ACTION environment variable, here with value "history" +``` + +
+

CLIPBOARD_EDITOR   Set this to the editor you want to use for the Edit action.

Set a custom editor to use. @@ -1419,6 +1430,19 @@ $ CLIPBOARD_LOCALE="" cb cp Foobar
+

CLIPBOARD_SCRIPT_TIMING   CB will set this to the timing of the script that it runs.

+ +Start with a script. +```sh +$ cb script ls +$ cb history +# Now, whatever script CB runs will have access to the CLIPBOARD_SCRIPT_TIMING environment variable, here with value "before" +# (output of "cb history") +# Now, CLIPBOARD_SCRIPT_TIMING will have value "after" +``` + +
+

CLIPBOARD_TMPDIR   Set this to the directory that only CB will use to hold the items you cut or copy into a temporary directory.

Choose a special place to put your temporary clipboards this one time. diff --git a/documentation/website/content/_docs.md b/documentation/website/content/_docs.md index 7aeff20be..8d6ef6ce5 100644 --- a/documentation/website/content/_docs.md +++ b/documentation/website/content/_docs.md @@ -965,6 +965,17 @@ cb p
+

CLIPBOARD_ACTION   CB will set this to the current action when running a script.

+ +Start with a script. +```sh +$ cb script ls +$ cb history +# Now, whatever script CB runs will have access to the CLIPBOARD_ACTION environment variable, here with value "history" +``` + +
+

CLIPBOARD_EDITOR   Set this to the editor you want to use for the Edit action.

Set a custom editor to use. @@ -1021,6 +1032,19 @@ $ CLIPBOARD_LOCALE="" cb cp Foobar
+

CLIPBOARD_SCRIPT_TIMING   CB will set this to the timing of the script that it runs.

+ +Start with a script. +```sh +$ cb script ls +$ cb history +# Now, whatever script CB runs will have access to the CLIPBOARD_SCRIPT_TIMING environment variable, here with value "before" +# (output of "cb history") +# Now, CLIPBOARD_SCRIPT_TIMING will have value "after" +``` + +
+

CLIPBOARD_TMPDIR   Set this to the directory that only CB will use to hold the items you cut or copy into a temporary directory.

Choose a special place to put your temporary clipboards this one time.