feat: add notify command, modify sidekick with tmux

This commit is contained in:
2026-05-26 16:54:53 +08:00
parent c32e8b4015
commit 4e8e3b7073
5 changed files with 63 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
function _notify_emit --argument-names title body
if set -q TMUX
printf '\ePtmux;\e\e]777;notify;%s;%s\a\e\\' "$title" "$body"
else
printf '\e]777;notify;%s;%s\a' "$title" "$body"
end
end