Skip to content

Instantly share code, notes, and snippets.

@diegogub
Last active September 10, 2025 04:13
Show Gist options
  • Save diegogub/49d57cb38fa6f3de456795d8d334c029 to your computer and use it in GitHub Desktop.
Save diegogub/49d57cb38fa6f3de456795d8d334c029 to your computer and use it in GitHub Desktop.
small script for helix repl driven development
#!/bin/bash
#
lang=$1
while IFS= read -r line; do
tmux send-keys -t .+ -l " $line "
#tmux send-keys -t .+ -H $(echo -n $line | xxd -p -u)
done
case $lang in
"ocaml")
tmux send-keys -t .+ ";\;"
;;
esac
tmux send-keys -t .+ Enter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment