Created
August 31, 2023 08:00
-
-
Save longdog/51f51133a76961204bb377ddd2c0e34c to your computer and use it in GitHub Desktop.
helix zellij repl
This file contains hidden or 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
[keys.normal." "] | |
z = ":pipe-to repl.sh" |
This file contains hidden or 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 bash | |
set -eou pipefail | |
if [ $# -eq 0 ]; then | |
read -r COMMAND | |
else | |
COMMAND=$1 | |
fi | |
zellij action focus-next-pane | |
zellij action write-chars "${COMMAND}" | |
zellij action write 13 | |
zellij action focus-next-pane |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment