From b3772f5d3fd5349769d5d39b03631670f67a2f5a Mon Sep 17 00:00:00 2001 From: Thomas Buck Date: Thu, 13 Feb 2025 13:51:11 +0000 Subject: [PATCH 1/2] Add tip box: output to clipboard via .once |pbcopy --- docs/clients/cli/dot_commands.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/clients/cli/dot_commands.md b/docs/clients/cli/dot_commands.md index 5cde306d5c..68ec49d30c 100644 --- a/docs/clients/cli/dot_commands.md +++ b/docs/clients/cli/dot_commands.md @@ -136,6 +136,8 @@ The results then open in the default text file editor of the system, for example cli_docs_output_to_text_editor +> Tip macOS users can copy the results to their clipboards by using `.once` to output to `pbcopy` via a pipe: `.once |pbcopy` Combinging this with `.headers off` and `.mode lines` can be particularly effective. + ## Querying the Database Schema All DuckDB clients support [querying the database schema with SQL]({% link docs/sql/meta/information_schema.md %}), but the CLI has additional [dot commands]({% link docs/clients/cli/dot_commands.md %}) that can make it easier to understand the contents of a database. From 902ccbd3ff4f91ae43098aaf31c1d4ba5564f783 Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Fri, 14 Feb 2025 07:59:26 +0100 Subject: [PATCH 2/2] Adjust dot command tip --- docs/clients/cli/dot_commands.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/clients/cli/dot_commands.md b/docs/clients/cli/dot_commands.md index 68ec49d30c..5012f619e4 100644 --- a/docs/clients/cli/dot_commands.md +++ b/docs/clients/cli/dot_commands.md @@ -136,7 +136,9 @@ The results then open in the default text file editor of the system, for example cli_docs_output_to_text_editor -> Tip macOS users can copy the results to their clipboards by using `.once` to output to `pbcopy` via a pipe: `.once |pbcopy` Combinging this with `.headers off` and `.mode lines` can be particularly effective. +> Tip macOS users can copy the results to their clipboards using [`pbcopy`](https://ss64.com/mac/pbcopy.html) by using `.once` to output to `pbcopy` via a pipe: `.once |pbcopy` +> +> Combining this with the `.headers off` and `.mode lines` options can be particularly effective. ## Querying the Database Schema