chore(root): use PID

This commit is contained in:
verse91
2026-04-09 23:48:30 +07:00
parent b01844639b
commit 6fd6a8e7a2
9 changed files with 162 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# iris zsh fast IPC integration
if [[ -n "$IRIS_FD" ]]; then
_iris_send_lbuffer() {
# -u $IRIS_FD writes to the pipe file descriptor set up by Iris wrappers
# -N appends a null byte '\0' instead of newline (perfect for parsing)
# -r prints raw string
print -u $IRIS_FD -N -r -- "$LBUFFER" 2>/dev/null
}
autoload -Uz add-zle-hook-widget
# Hook into ZLE so this runs absolutely every time the line buffer changes
add-zle-hook-widget line-pre-redraw _iris_send_lbuffer
fi