{"id":20694735,"url":"https://github.com/cli-stuff/cli-tips","last_synced_at":"2025-04-22T19:58:54.241Z","repository":{"id":261597755,"uuid":"884779599","full_name":"cli-stuff/cli-tips","owner":"cli-stuff","description":"💡 CLI tool that provides useful tips and commands for Linux users","archived":false,"fork":false,"pushed_at":"2025-02-03T05:58:07.000Z","size":2993,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T10:42:41.863Z","etag":null,"topics":["bash","cli","cli-tool","motd","tips"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cli-stuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://send.monobank.ua/jar/6rUVs4yasg","https://donatello.to/okineadev"]}},"created_at":"2024-11-07T11:28:12.000Z","updated_at":"2025-03-19T06:10:24.000Z","dependencies_parsed_at":"2024-12-21T12:19:32.016Z","dependency_job_id":"e7b0a459-f133-4a57-afed-521a3dba6a37","html_url":"https://github.com/cli-stuff/cli-tips","commit_stats":null,"previous_names":["okineadev/cli-tips","cli-stuff/cli-tips"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cli-stuff%2Fcli-tips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cli-stuff%2Fcli-tips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cli-stuff%2Fcli-tips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cli-stuff%2Fcli-tips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cli-stuff","download_url":"https://codeload.github.com/cli-stuff/cli-tips/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250315975,"owners_count":21410473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cli","cli-tool","motd","tips"],"created_at":"2024-11-17T00:06:13.538Z","updated_at":"2025-04-22T19:58:54.233Z","avatar_url":"https://github.com/cli-stuff.png","language":"Shell","funding_links":["https://send.monobank.ua/jar/6rUVs4yasg","https://donatello.to/okineadev"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable first-line-h1 no-inline-html --\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![CLI Tips Banner](assets/banner.png)\n\n\u003cp\u003e\n\n`cli-tips` is a command-line tool offering useful Linux tips and commands, which can be integrated as a **Message of the Day** (MOTD).\n\n\u003c/p\u003e\n\n\u003c/div\u003e\n\n## ✨ Features\n\n- Displays helpful Linux command tips\n- Supports multiple languages\n- Easy to install and use\n\n## 📥 Installation\n\nTo install `cli-tips`, run the following command:\n\n```bash\ncurl -sL https://bit.ly/cli-tips-installer | bash\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\n    \u003ch4\u003e🗑️ Uninstall\u003c/h4\u003e\n\u003c/summary\u003e\n\nTo uninstall `cli-tips`, run the following command:\n\n```bash\nsudo rm -rf ${PREFIX:-/usr$([ \"$(uname)\" = \"Darwin\" ] \u0026\u0026 echo \"/local\")}/{bin,share}/cli-tips \u0026\u0026 hash -r\n```\n\n\u003e **ℹ️ Note**:\n\u003e\n\u003e If you want to remove this tool from **Termux**, run the above command without `sudo`.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\n    \u003ch4\u003e❄️ Nix\u003c/h4\u003e\n\u003c/summary\u003e\n\nFor Nix the package manager, the package name is `cli-tips`. You should consult [the Nix manual](https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management)\non how to properly install packages.\n\n\u003c/details\u003e\n\n### Compatibility table\n\n| \u003cdiv\u003e\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/f/f1/Icons8_flat_linux.svg\" alt=\"Linux logo\" width=\"30\"/\u003e\u003c/div\u003e **Linux** | \u003cdiv\u003e\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Termux.svg\" alt=\"Termux logo\" width=\"30\"/\u003e\u003c/div\u003e **Termux** | \u003cdiv\u003e\u003cimg src=\"https://github.com/okineadev/dotload/raw/refs/heads/main/public/macos-dark-logo.svg#gh-light-mode-only\" alt=\"macOS logo\" width=\"30\"/\u003e\u003cimg src=\"https://github.com/okineadev/dotload/raw/refs/heads/main/public/macos-light-logo.svg#gh-dark-mode-only\" alt=\"macOS logo\" width=\"30\"/\u003e\u003c/div\u003e **macOS** | \u003cdiv\u003e\u003cimg src=\"https://github.com/okineadev/dotload/assets/81070564/99544c04-51e7-41b5-95f7-0828cfc97617\" alt=\"Windows logo\" width=\"30\"/\u003e\u003c/div\u003e **Windows** (on [msys shell](https://www.msys2.org/)) |\n| :-------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |\n|                                                                   ✅                                                                    |                                                               ✅                                                               |                                                                                                                                                         ✅                                                                                                                                                          |                                                                                                  ✅                                                                                                   |\n\n## 🚀 Usage\n\nTo print a random tip, run:\n\n```bash\ncli-tips\n\n# Output:\n# Use 'uniq' to remove duplicate lines from a file\n```\n\n\u003e [!NOTE]\n\u003e\n\u003e `cli-tips` automatically detects the user's language and displays tips in that language. You can also set the language manually using the `LANG` environment variable.\n\n### Use Another Language\n\nTo display tips in a different language, use the `--lang` option:\n\n```bash\ncli-tips --lang=uk\n# Output: Використовуйте 'uniq', щоб видалити дубльовані рядки з файлу\n```\n\nYou can also use the `LANG` environment variable:\n\n```bash\nLANG=de cli-tips\n# Output: Verwenden Sie 'uniq', um doppelte Zeilen aus einer Datei zu entfernen\n```\n\n### Use the `--about` Flag\n\nTo display a random tip containing a specific keyword, use the `--about` option:\n\n```bash\ncli-tips --about=git\n# Output: Use 'git status' to check the status of your git repository\n```\n\nIf no tips contain the specified keyword, no tip will be output.\n\n### Available Languages\n\nHere is a list of all available languages:\n\n| Language                            | Code |\n| ----------------------------------- | :--: |\n| [🇸🇦 Arabic](translations/ar.txt)    | `ar` |\n| [🇨🇳 Chinese](translations/cn.txt)   | `cn` |\n| [🇩🇪 German](translations/de.txt)    | `de` |\n| [🇬🇧 English](translations/en.txt)   | `en` |\n| [🇮🇷 Farsi](translations/fa.txt)     | `fa` |\n| [🇮🇹 Italian](translations/it.txt)   | `it` |\n| [🇯🇵 Japanese](translations/ja.txt)  | `ja` |\n| [🇰🇷 Korean](translations/ko.txt)    | `ko` |\n| [🇵🇱 Polish](translations/pl.txt)    | `pl` |\n| [🇪🇸 Spanish](translations/es.txt)   | `es` |\n| [🇺🇦 Ukrainian](translations/uk.txt) | `uk` |\n\n\u003c!-- ### Specify a Custom Folder with Tips Translations\n\nTo use a custom folder with tips translations, set the `TIPS_FOLDER` environment variable:\n\n```bash\nTIPS_FOLDER=/path/to/tips cli-tips --lang=veryrarelanguage\n# Output: \u003cTip in veryrarelanguage\u003e\n```\n\nBy default, `cli-tips` uses the built-in tips folder. The custom folder should contain text files in the following format:\n\n```plaintext\ntips_\u003clang_id\u003e.txt\n```\n\nExample:\n\n```plaintext\n📂 translations/\n ├── 📄 tips_de.txt\n ├── 📄 tips_en.txt\n ├── 📄 tips_pl.txt\n └── 📄 tips_uk.txt\n``` --\u003e\n\n## 📝 License\n\nThis project is fully free and you can do anything you want with it, even without mentioning this repository or license. Enjoy! 🚀\n\n## ❤️ Support\n\nIf you like this project, consider supporting it by starring ⭐ it on GitHub, sharing it with your friends, or [buying me a coffee ☕](https://github.com/cli-stuff/cli-tips?sponsor=1)\n\n## 🤝 Contributing\n\nWe welcome contributions from everyone. If you would like to contribute, please read our [CONTRIBUTING.md](CONTRIBUTING.md) file for detailed instructions on how to add translations and other contributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcli-stuff%2Fcli-tips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcli-stuff%2Fcli-tips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcli-stuff%2Fcli-tips/lists"}