Created
March 9, 2026 01:26
-
-
Save abulka/9eda2f182c86957aa9061973dd2a44e0 to your computer and use it in GitHub Desktop.
gemini advice on snips.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://gemini.google.com/app/935f6ae050f77ade | |
| It is definitely "extreme" in a world of bulky web apps, but that is the core philosophy of **snips.sh**. It’s built for people who want to stay in the flow of their terminal without switching to a browser, clicking "New," pasting, and hitting "Save." | |
| Since you find the CLI-only creation a bit much, here are the two ways to bridge that gap, plus an alternative that gives you the best of both worlds. | |
| --- | |
| ## 1. The "Web Experience" via SSH | |
| While there isn't a "Paste" button on the website, the **TUI (Terminal User Interface)** acts as your dashboard. It feels much more like an app than a command line. | |
| * **To manage/view like an app:** Just run `ssh snips.sh`. | |
| * You get a full-screen interface where you can browse, preview with syntax highlighting, and delete snippets using your keyboard. | |
| --- | |
| ## 2. The "Fake" Web Upload (The macOS Shortcut) | |
| If you are on a Mac and want to create a snippet from text you just copied (without typing a `cat` command), you can create a simple **Quick Action** or alias that handles the "CLI stuff" for you. | |
| Add this to your `~/.zshrc` file: | |
| ```bash | |
| # Type 'psnip' to turn your clipboard into a snips.sh link | |
| alias psnip="pbpaste | ssh snips.sh | pbcopy && echo 'Link copied to clipboard!'" | |
| ``` | |
| **Now your workflow is:** 1. Copy text anywhere (Web, Slack, Email). | |
| 2. Type `psnip` in your terminal. | |
| 3. Paste the URL anywhere. | |
| --- | |
| ## 3. The Best Alternative: GitHub Gist | |
| If you want the option to use a **Web UI** sometimes and a **CLI** other times, **GitHub Gist** is your best bet. It is ad-free and incredibly robust. | |
| ### For the Web: | |
| Just go to [gist.github.com](https://gist.github.com) and paste. | |
| ### For the CLI (The `gh` tool): | |
| Install the official GitHub CLI on your Mac: | |
| ```bash | |
| brew install gh | |
| ``` | |
| **Usage examples:** | |
| * **Create a public gist:** `gh gist create myfile.txt` | |
| * **Create a secret gist:** `gh gist create myfile.txt -p` | |
| * **List your gists:** `gh gist list` | |
| * **Delete a gist:** `gh gist delete <id>` | |
| --- | |
| ### Which one fits you better? | |
| | Feature | snips.sh | GitHub Gist | | |
| | --- | --- | --- | | |
| | **Web Upload** | No | **Yes** | | |
| | **Terminal Upload** | **Easier** (No login) | Needs `gh` auth | | |
| | **Syntax Highlighting** | Yes | Yes | | |
| | **Deletion** | Via SSH TUI | Via Web or `gh` | | |
| | **Privacy** | Public/Unlisted | Public/Secret | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment