Basic Usage
<command> | curl -F 'mengpaste=<-' https://paste.mangsud.org/cli
Bash Helper Function
# Add to .bashrc or .zshrc
function mengpaste() {
if [ -t 0 ]; then
"$@" | curl -F 'mengpaste=<-' https://paste.mangsud.org/cli
else
curl -F 'mengpaste=<-' https://paste.mangsud.org/cli
fi
}
Examples
# Paste a file
cat hello.txt | mengpaste
# Paste command output
ps aux | mengpaste
# Using helper function
mengpaste ls -la
Created with by Aldwin