From 92db56032cd585fc4bd5f83bb645515fa7cf2a5e Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Thu, 29 Oct 2026 19:17:41 -0400 Subject: [PATCH] feat(ghostty): reload config and support copy shortcuts --- home/bin/executable_update.sh | 6 +++++- home/dot_config/ghostty/config | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/home/bin/executable_update.sh b/home/bin/executable_update.sh index 7a46040..851d79c 100644 --- a/home/bin/executable_update.sh +++ b/home/bin/executable_update.sh @@ -6,7 +6,11 @@ function chezmoiUpdate { if command -v chezmoi &> /dev/null; then echo Updating chezmoi dotfiles... - chezmoi update + chezmoi update || return $? + if [[ "$(uname -s)" == "Darwin" ]]; then + # SIGUSR2 reloads Ghostty's config without terminating it; ignore if not running. + pkill -USR2 -x ghostty || [[ $? -eq 1 ]] + fi fi } diff --git a/home/dot_config/ghostty/config b/home/dot_config/ghostty/config index ba6f584..50bb4bd 100644 --- a/home/dot_config/ghostty/config +++ b/home/dot_config/ghostty/config @@ -15,6 +15,8 @@ keybind = super++=increase_font_size:1 keybind = super+shift+==increase_font_size:1 keybind = super+-=decrease_font_size:1 +keybind = ctrl+shift+c=copy_to_clipboard +keybind = super+shift+c=copy_to_clipboard keybind = ctrl+shift+v=paste_from_clipboard keybind = super+shift+v=paste_from_clipboard