Created
April 9, 2024 01:48
-
-
Save LevitatingBusinessMan/e0352748a7464a07e65d56225defb517 to your computer and use it in GitHub Desktop.
like rlwrap but in 10 lines of fish
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
#!/usr/bin/env fish | |
while true | |
read -P "" input | |
if test $status -ne 0 | |
break | |
end | |
echo $input | |
end | $argv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use like
wrap.fish nc localhost 1234
or something to have history and editing in a netcat connection or something