mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 15:01:54 +00:00
Update cheatsheets
This commit is contained in:
14
tldr/bun
14
tldr/bun
@@ -9,6 +9,10 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
> Includes a bundler, a test runner, and a package manager.
|
> Includes a bundler, a test runner, and a package manager.
|
||||||
> More information: <https://bun.com/docs>.
|
> More information: <https://bun.com/docs>.
|
||||||
|
|
||||||
|
- Create a new Bun project in the current directory:
|
||||||
|
|
||||||
|
`bun init`
|
||||||
|
|
||||||
- Run a JavaScript file or a `package.json` script:
|
- Run a JavaScript file or a `package.json` script:
|
||||||
|
|
||||||
`bun run {{path/to/file|script_name}}`
|
`bun run {{path/to/file|script_name}}`
|
||||||
@@ -19,19 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Download and install all the packages listed as dependencies in `package.json`:
|
- Download and install all the packages listed as dependencies in `package.json`:
|
||||||
|
|
||||||
`bun install`
|
`bun {{[i|install]}}`
|
||||||
|
|
||||||
- Add a dependency to `package.json`:
|
- Add a dependency to `package.json`:
|
||||||
|
|
||||||
`bun add {{module_name}}`
|
`bun {{[a|add]}} {{module_name}}`
|
||||||
|
|
||||||
- Remove a dependency from `package.json`:
|
- Remove a dependency from `package.json`:
|
||||||
|
|
||||||
`bun remove {{module_name}}`
|
`bun {{[rm|remove]}} {{module_name}}`
|
||||||
|
|
||||||
- Create a new Bun project in the current directory:
|
|
||||||
|
|
||||||
`bun init`
|
|
||||||
|
|
||||||
- Start a REPL (interactive shell):
|
- Start a REPL (interactive shell):
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
> Show a unit's dependency tree in systemd.
|
> Show a unit's dependency tree in systemd.
|
||||||
> See also: `systemctl list-units` to list loaded units.
|
> See also: `systemctl list-units` to list loaded units.
|
||||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20list-dependencies%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT...%0A%20%20%20%20%20%20%20%20%20%20>.
|
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20list-dependencies%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT...%0A%20%20%20%20%20%20%20%20%20%20>.
|
||||||
|
|
||||||
- Show the dependency tree of `default.target`:
|
- Show the dependency tree of `default.target`:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# systemctl list-jobs
|
# systemctl list-jobs
|
||||||
|
|
||||||
> List of active systemd jobs that are currently queued or running on the system.
|
> List of active systemd jobs that are currently queued or running on the system.
|
||||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-jobs%20PATTERN…>.
|
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-jobs%20PATTERN%E2%80%A6>.
|
||||||
|
|
||||||
- List all active jobs:
|
- List all active jobs:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# systemctl list-timers
|
# systemctl list-timers
|
||||||
|
|
||||||
> List all active systemd timers.
|
> List all active systemd timers.
|
||||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-timers%20PATTERN…>.
|
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-timers%20PATTERN%E2%80%A6>.
|
||||||
|
|
||||||
- List all active timers:
|
- List all active timers:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# msgattrib
|
# msgattrib
|
||||||
|
|
||||||
> Filter and manipulate message attributes in `.po` translation files.
|
> Filter and manipulate message attributes in `.po` translation files.
|
||||||
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgattrib-Invocation.html>.
|
> More information: <https://www.gnu.org/software/gettext/manual/gettext.html#msgattrib-Invocation>.
|
||||||
|
|
||||||
- Keep only translated messages:
|
- Keep only translated messages:
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`eval "$(oh-my-posh init bash --config {{path/to/theme}})"`
|
`eval "$(oh-my-posh init bash --config {{path/to/theme}})"`
|
||||||
|
|
||||||
- Initialize for Powershell:
|
- Initialize for PowerShell:
|
||||||
|
|
||||||
`oh-my-posh init pwsh --config {{path/to/theme}} | Invoke-Expression`
|
`oh-my-posh init pwsh --config {{path/to/theme}} | Invoke-Expression`
|
||||||
|
|
||||||
|
|||||||
2
tldr/tv
2
tldr/tv
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# tv
|
# tv
|
||||||
|
|
||||||
> Cross-platform, fast, extensible fuzzy-finder tool.
|
> Cross-platform, fast, extensible fuzzy-finder tool.
|
||||||
> Works with “channels” (e.g., files, env, git repos) or from `stdin`.
|
> Works with "channels" (e.g., files, env, git repos) or from `stdin`.
|
||||||
> More information: <https://alexpasmantier.github.io/television/>.
|
> More information: <https://alexpasmantier.github.io/television/>.
|
||||||
|
|
||||||
- Launch with the default channel:
|
- Launch with the default channel:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# Get-Clipboard
|
# Get-Clipboard
|
||||||
|
|
||||||
> A powershell command to get content from clipboard.
|
> A PowerShell command to get content from clipboard.
|
||||||
> Note: `gcb` can be used as an alias for `Get-Clipboard`.
|
> Note: `gcb` can be used as an alias for `Get-Clipboard`.
|
||||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-clipboard>.
|
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-clipboard>.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# Set-Alias
|
# Set-Alias
|
||||||
|
|
||||||
> A powershell command to set or modify alias.
|
> A PowerShell command to set or modify alias.
|
||||||
> Note: `sal` can be used as an alias for `Set-Alias`.
|
> Note: `sal` can be used as an alias for `Set-Alias`.
|
||||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-alias>.
|
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-alias>.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# Set-Clipboard
|
# Set-Clipboard
|
||||||
|
|
||||||
> Powershell command to set content to clipboard.
|
> PowerShell command to set content to clipboard.
|
||||||
> Note: `scb` can be used as an alias for `Set-Clipboard`.
|
> Note: `scb` can be used as an alias for `Set-Clipboard`.
|
||||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-clipboard>.
|
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-clipboard>.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user