Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-17 00:21:04 +00:00
parent a3dc1769f5
commit 5e29c3e5bb
4 changed files with 32 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# links
> Command-line text-only web browser.
> See also: `links2'.
> See also: `links2`.
> More information: <https://links.twibright.com/user_en.html#subch-browser_calibration>.
- Visit a website:

View File

@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
`su - {{username}} {{[-c|--command]}} "{{command}}"`
- Switch to a given user and use a specific shell (e.g., zsh, fish, bash):
- Switch to a given user and use a specific shell (e.g., Zsh, fish, Bash):
`su {{[-s|--shell]}} /{{path/to/shell}} {{username}}`

29
tldr/npm-stars Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm stars
> View packages marked as favorites.
> More information: <https://docs.npmjs.com/cli/npm-stars>.
- Show all starred packages by the currently logged-in user:
`npm stars`
- Show your starred packages from a specific registry:
`npm stars --registry {{registry_url}}`
- Show packages starred by a specific user:
`npm stars {{username}}`
- Show packages starred by a specific user from a specific registry:
`npm stars {{username}} --registry {{registry_url}}`
- Display help:
`npm stars {{[-h|--help]}}`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`locate "{{pattern}}"`
- Look for a pattern case-insensitively:
- Look for a pattern while [i]gnoring cases:
`locate -i "{{pattern}}"`