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

14
fn/-z4h-restore-screen Normal file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env zsh
eval "$_z4h_opt"
[[ -v _z4h_tty_fd ]] || return
if [[ -n $_Z4H_TMUX ]]; then
(( ${+_z4h_saved_screen} )) || return
print -rnu $_z4h_tty_fd -- "$_z4h_saved_screen"
elif [[ -n $Z4H_SSH && -n $_Z4H_SSH_MARKER ]]; then
printf '\001z4h.%s%s' "$_Z4H_SSH_MARKER" 'restore-screen ' >&$_z4h_tty_fd
else
return 1
fi