Skip to content

Instantly share code, notes, and snippets.

@Douile
Created October 12, 2020 16:49
Show Gist options
  • Save Douile/a6e104c70bdfdd9077ba5a81fb2524d3 to your computer and use it in GitHub Desktop.
Save Douile/a6e104c70bdfdd9077ba5a81fb2524d3 to your computer and use it in GitHub Desktop.
A simple bash function that reads from stdin then sends the input with croc
#!/bin/bash
# https://github.com/schollz/croc
croc-send() {
read -sp ">" tmp;
croc send --text "$tmp";
tmp="";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment