mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 04:45:35 +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.
|
||||
> 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:
|
||||
|
||||
`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`:
|
||||
|
||||
`bun install`
|
||||
`bun {{[i|install]}}`
|
||||
|
||||
- Add a dependency to `package.json`:
|
||||
|
||||
`bun add {{module_name}}`
|
||||
`bun {{[a|add]}} {{module_name}}`
|
||||
|
||||
- Remove a dependency from `package.json`:
|
||||
|
||||
`bun remove {{module_name}}`
|
||||
|
||||
- Create a new Bun project in the current directory:
|
||||
|
||||
`bun init`
|
||||
`bun {{[rm|remove]}} {{module_name}}`
|
||||
|
||||
- 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.
|
||||
> 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`:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# systemctl list-jobs
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# systemctl list-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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# msgattrib
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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`
|
||||
|
||||
|
||||
2
tldr/tv
2
tldr/tv
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tv
|
||||
|
||||
> 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/>.
|
||||
|
||||
- Launch with the default channel:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`.
|
||||
> 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
|
||||
|
||||
> 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`.
|
||||
> 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
|
||||
|
||||
> 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`.
|
||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-clipboard>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user