diff --git a/tldr/jj-bisect b/tldr/jj-bisect new file mode 100644 index 00000000..f1c9c0ca --- /dev/null +++ b/tldr/jj-bisect @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# jj bisect + +> Find a bad revision by bisection. +> More information: . + +- Find the first bad revision in a range by running a test command: + +`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} {{command}}` + +- Find the first bad revision using a shell command: + +`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} -- bash -c "{{command}}"` + +- Find the first good revision instead of the first bad one: + +`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good {{command}}` + +- Find the first revision where a file was added: + +`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good -- test -f {{path/to/file}}` diff --git a/tldr/jj-tag b/tldr/jj-tag new file mode 100644 index 00000000..6f653cd6 --- /dev/null +++ b/tldr/jj-tag @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# jj tag + +> Manage tags in a `jj` repository. +> Some subcommands such as `delete`, `list`, `set` have their own usage documentation. +> More information: . + +- Create a tag pointing to the current working copy revision: + +`jj tag {{[s|set]}} {{tag_name}}` + +- Create a tag pointing to a specific revision: + +`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}}` + +- List all tags: + +`jj tag {{[l|list]}}` + +- List tags matching a pattern, sorted by committer date (newest first): + +`jj tag {{[l|list]}} --sort committer-date- "{{pattern}}"` + +- Move an existing tag to a different revision: + +`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}} --allow-move` + +- Delete a tag: + +`jj tag {{[d|delete]}} {{tag_name}}` + +- Delete tags matching a glob pattern: + +`jj tag {{[d|delete]}} "{{glob:v1.*}}"` + +- Display help: + +`jj tag {{[-h|--help]}}` diff --git a/tldr/jj-tag-delete b/tldr/jj-tag-delete new file mode 100644 index 00000000..3395b4ba --- /dev/null +++ b/tldr/jj-tag-delete @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# jj tag delete + +> Delete tags in a `jj` repository. +> See also: `jj tag list`, `jj tag set`. +> More information: . + +- Delete a tag: + +`jj tag {{[d|delete]}} {{tag_name}}` + +- Delete multiple tags: + +`jj tag {{[d|delete]}} {{tag1 tag2 ...}}` + +- Delete tags matching a glob pattern: + +`jj tag {{[d|delete]}} "{{glob:v1.*}}"` + +- Delete tags matching a substring pattern: + +`jj tag {{[d|delete]}} "{{substring:release}}"` + +- Delete a tag by exact name: + +`jj tag {{[d|delete]}} "{{exact:v1.0.0}}"` diff --git a/tldr/jj-tag-list b/tldr/jj-tag-list new file mode 100644 index 00000000..83fdc270 --- /dev/null +++ b/tldr/jj-tag-list @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# jj tag list + +> List tags in a `jj` repository. +> See also: `jj tag delete`, `jj tag set`. +> More information: . + +- List all tags: + +`jj tag {{[l|list]}}` + +- List tags matching a pattern: + +`jj tag {{[l|list]}} "{{pattern}}"` + +- List tags matching a substring pattern: + +`jj tag {{[l|list]}} "{{substring:release}}"` + +- List tags sorted by committer date (newest first): + +`jj tag {{[l|list]}} --sort committer-date-` + +- List tags sorted by name in descending order: + +`jj tag {{[l|list]}} --sort name-` + +- List tags with a custom template: + +`jj tag {{[l|list]}} {{[-T|--template]}} "{{template}}"` diff --git a/tldr/jj-tag-set b/tldr/jj-tag-set new file mode 100644 index 00000000..d7ef3cd0 --- /dev/null +++ b/tldr/jj-tag-set @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# jj tag set + +> Create or update tags in a `jj` repository. +> See also: `jj tag delete`, `jj tag list`. +> More information: . + +- Create a tag pointing to the current working copy revision: + +`jj tag {{[s|set]}} {{tag_name}}` + +- Create a tag pointing to a specific revision: + +`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}}` + +- Create multiple tags pointing to the same revision: + +`jj tag {{[s|set]}} {{tag1 tag2 ...}} {{[-r|--revision]}} {{revision}}` + +- Move an existing tag to a different revision: + +`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}} --allow-move` + +- Create a tag pointing to the parent of the current revision: + +`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} @-` diff --git a/tldr/kill b/tldr/kill index cca00a90..4a69b6ed 100644 --- a/tldr/kill +++ b/tldr/kill @@ -19,20 +19,20 @@ source: https://github.com/tldr-pages/tldr.git - Terminate a program using the SIGHUP (hang up) signal. Many daemons will reload instead of terminating: -`kill -{{1|HUP}} {{process_id}}` +`kill {{[-1|-HUP]}} {{process_id}}` - Terminate a program using the SIGINT (interrupt) signal. This is typically initiated by the user pressing ``: -`kill -{{2|INT}} {{process_id}}` +`kill {{[-2|-INT]}} {{process_id}}` - Signal the operating system to immediately terminate a program (which gets no chance to capture the signal): -`kill -{{9|KILL}} {{process_id}}` +`kill {{[-9|-KILL]}} {{process_id}}` - Signal the operating system to pause a program until a SIGCONT ("continue") signal is received: -`kill -{{17|STOP}} {{process_id}}` +`kill {{[-19|-STOP]}} {{process_id}}` - Send a `SIGUSR1` signal to all processes with the given GID (group id): -`kill -{{SIGUSR1}} -{{group_id}}` +`kill -SIGUSR1 -{{group_id}}` diff --git a/tldr/linux/kill b/tldr/linux/kill index 8848b240..34b2983c 100644 --- a/tldr/linux/kill +++ b/tldr/linux/kill @@ -23,20 +23,20 @@ source: https://github.com/tldr-pages/tldr.git - Terminate a program using the SIGHUP (hang up) signal. Many daemons will reload instead of terminating: -`kill -{{1|HUP}} {{process_id}}` +`kill {{[-1|-HUP]}} {{process_id}}` - Terminate a program using the SIGINT (interrupt) signal. This is typically initiated by the user pressing ``: -`kill -{{2|INT}} {{process_id}}` +`kill {{[-2|-INT]}} {{process_id}}` - Signal the operating system to immediately terminate a program (which gets no chance to capture the signal): -`kill -{{9|KILL}} {{process_id}}` +`kill {{[-9|-KILL]}} {{process_id}}` - Signal the operating system to pause a program until a SIGCONT ("continue") signal is received: -`kill -{{17|STOP}} {{process_id}}` +`kill {{[-19|-STOP]}} {{process_id}}` - Send a `SIGUSR1` signal to all processes with the given GID (group id): -`kill -{{SIGUSR1}} -{{group_id}}` +`kill -SIGUSR1 -{{group_id}}` diff --git a/tldr/linux/kscreen-doctor b/tldr/linux/kscreen-doctor index 178a6828..bb9697c9 100644 --- a/tldr/linux/kscreen-doctor +++ b/tldr/linux/kscreen-doctor @@ -14,8 +14,20 @@ source: https://github.com/tldr-pages/tldr.git - Set the rotation of a display output with an ID of 1 to the right: -`kscreen-doctor {{output.1.rotation.right}}` +`kscreen-doctor output.1.rotation.right` - Set the scale of a display output with an ID of `HDMI-2` to 2 (200%): -`kscreen-doctor {{output.HDMI-2.scale.2}}` +`kscreen-doctor output.HDMI-2.scale.2` + +- Enable a specific HDMI display: + +`kscreen-doctor output.{{HDMI-A-1}}.enable` + +- Disable a specific DisplayPort display: + +`kscreen-doctor output.{{DP-2}}.disable` + +- Set a display as primary display: + +`kscreen-doctor output.{{HDMI-A-1}}.primary` diff --git a/tldr/linux/zenity b/tldr/linux/zenity index d09d048a..f5e709d6 100644 --- a/tldr/linux/zenity +++ b/tldr/linux/zenity @@ -13,13 +13,13 @@ source: https://github.com/tldr-pages/tldr.git `zenity --question` -- Display an info dialog displaying the text "Hello!": +- Display an info dialog displaying a message: -`zenity --info --text="{{Hello!}}"` +`zenity --info --text "{{message}}"` -- Display a name/password form and output the data separated by ";": +- Display a name/password form and output the data separated by ";" ("|" by default): -`zenity --forms --add-entry="{{Name}}" --add-password="{{Password}}" --separator="{{;}}"` +`zenity --forms --add-entry "{{name_label}}" --add-password "{{password_label}}" --separator ";"` - Display a file selection form in which the user can only select directories: