Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Created April 9, 2024 01:48
Show Gist options
  • Save LevitatingBusinessMan/e0352748a7464a07e65d56225defb517 to your computer and use it in GitHub Desktop.
Save LevitatingBusinessMan/e0352748a7464a07e65d56225defb517 to your computer and use it in GitHub Desktop.
like rlwrap but in 10 lines of fish
#!/usr/bin/env fish
while true
read -P "" input
if test $status -ne 0
break
end
echo $input
end | $argv
@LevitatingBusinessMan
Copy link
Author

use like wrap.fish nc localhost 1234 or something to have history and editing in a netcat connection or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment