Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.42 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.42 KB

File Share (fshare)

FShare is a command-line utility for file sharing.
You can set a deletion period for the uploaded file (default is 24 hours) or delete it immediately.

XOrg / Wayland Compatible

Demo GIF

Features

  • Automatically deletes uploaded files.
  • Supports both Wayland and Xorg environments.
  • Copies URL to clipboard for effortless sharing.
  • Maintains history in ~/.fshare for easy file management.

Prerequisites

  • curl: For HTTP requests.
  • fzf (optional): For interactive file selection.
  • xclip (optional): For Xorg clipboard support.
  • wl-clipboard (optional): For Wayland clipboard support.

Installation

  1. Download the script:

    wget https://raw.githubusercontent.com/flarexes/fshare/main/fshare
  2. Make the script executable:

    chmod +x fshare

Usage

Run the script with the file or directory path as an argument:

./fshare /path/to/your/file

If no path is provided, the script will prompt you to select a file using fzf.

Deleting Files

To delete the uploaded file immediately, use the token provided in the output. You can also check your history in ~/.fshare.

License

This project is licensed under the MIT License - see the LICENSE file for details.