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
- 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.
- curl: For HTTP requests.
- fzf (optional): For interactive file selection.
- xclip (optional): For Xorg clipboard support.
- wl-clipboard (optional): For Wayland clipboard support.
-
Download the script:
wget https://raw.githubusercontent.com/flarexes/fshare/main/fshare
-
Make the script executable:
chmod +x fshare
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
.
To delete the uploaded file immediately, use the token provided in the output. You can also check your history in ~/.fshare
.
This project is licensed under the MIT License - see the LICENSE file for details.