Share Your Terminal Output Beautifully
Turn command output into elegant, syntax-highlighted web pages with just one command.
Why tshare?
- Preserves formatting — Code and command output look exactly as intended
- Quick sharing — No need to copy/paste text or take screenshots
- Context-aware — Shows the command, directory, and hostname for reference
- Syntax highlighting — Makes output more readable
- Just works — No accounts, no configuration, no hassle
- Host your own backend API - if thats your jam
How to Use
Download the client script and make it executable:
curl -o ~/.local/bin/tshare https://raw.githubusercontent.com/mikkelrask/terminal-share/refs/heads/main/tshare
chmod +x ~/.local/bin/tshare
note: If you get an error, you might need to prefix the commands with 'sudo' or similar to elevate your priveliges
Then, simply prefix any command with tshare to share its output:
tshare ls -la
tshare -s python script.py
Once the command completes, tshare will:
- Generate a link to a web page with your command output
- Copy the link to your clipboard automatically
- Show you the link in the terminal
Available Options
-s, --syntax— Specify syntax highlighting (e.g.,-s python)-n, --no-clipboard— Disable copying the URL to the clipboard-q, --quiet— Suppress command output (only show the share URL)-u, --url— Specify a custom server URL-h, --help— Show help message
Example output page:
For a real example, check out this example output.Contribute
tshare is an open-source project. Check it out on GitHub to see the source code, report issues, or contribute improvements!