first commit

This commit is contained in:
Arctic 2025-07-04 11:48:40 -05:00
commit 0610f4aeab
130 changed files with 9897 additions and 0 deletions

13
fn/-z4h-save-screen Normal file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env zsh
eval "$_z4h_opt"
if [[ -n $_Z4H_TMUX ]]; then
local pane
pane="$(TMUX=$_Z4H_TMUX TMUX_PANE=$_Z4H_TMUX_PANE $_Z4H_TMUX_CMD capture-pane -p -e && print -n x)" || return
typeset -g _z4h_saved_screen=$'\e[0m\e[H'${${pane//$'\n'/$'\e[49m\e[K\r\n'}%$'\r\nx'}
elif [[ -n $Z4H_SSH && -n $_Z4H_SSH_MARKER && -v _z4h_tty_fd ]]; then
printf '\001z4h.%s%s' "$_Z4H_SSH_MARKER" 'save-screen ' >&$_z4h_tty_fd
else
return 1
fi