Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File Share (fshare)

FShare is a command-line utility for file sharing.
Files are automatically removed after 6 days. or you can delete it immediately.

XOrg / Wayland Compatible

Demo GIF

Features

  • Supports both Wayland and Xorg environments.
  • Copies URL to clipboard for effortless sharing.
  • Maintains history in ~/.fshare for easy file management.
  • Interactive file picker using fzf when no file is specified.
  • Automatically generates a random bin name for improved privacy.

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

After each upload, fshare prints the command required to delete the uploaded file immediately and saves it to ~/.fshare for future reference.

You can either run the command shown after the upload or retrieve it later from ~/.fshare.

License

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

About

fshare is a command-line utility for quickly sharing file.

Topics

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages