Created
October 12, 2020 16:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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