Add self-update, version 1.0.1
ghosttyconf --update installs the newest release from git.micw.org, --check-update only checks. The download lands next to the running binary, is started once with --version and only then replaces it. Once a day a normal start asks in the background and mentions a newer release in the header, at the top of the help and on stderr after quitting; only on a terminal and not with GHOSTTYCONF_NO_UPDATE_CHECK set. selfupdate.go is nscan's copyable template, with goca's --update spelling in the hints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5750ef24b
commit
fb5602452a
13 files changed
+818
-11
No files matched your search
@@ -46,9 +46,10 @@ keybind = super+k=unbind
|
||||
keybind = ctrl+grave_accent=toggle_quick_terminal
|
||||
EOF
|
||||
|
||||
# HOME points at the demo so the title bar shows ~/.config/ghostty/…
|
||||
# HOME points at the demo so the title bar shows ~/.config/ghostty/…, and the
|
||||
# update check stays off so no "newer release" lands in a screenshot.
|
||||
tmux new-session -d -s "$SESSION" -x $COLS -y $ROWS \
|
||||
"cd '$tmp/home' && env HOME='$tmp/home' COLORTERM=truecolor '$tmp/ghosttyconf' --no-reload"
|
||||
"cd '$tmp/home' && env HOME='$tmp/home' COLORTERM=truecolor GHOSTTYCONF_NO_UPDATE_CHECK=1 '$tmp/ghosttyconf' --no-reload"
|
||||
sleep 2
|
||||
|
||||
keys() {
|
||||
|
||||
Reference in new issue
Block a user