We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f96924 commit 1583ec9Copy full SHA for 1583ec9
tools/utils.sh
@@ -12,3 +12,18 @@ function to_clipboard {
12
cat
13
fi
14
}
15
+
16
+function install_or_update_ghostty {
17
+ # see https://github.com/mkasberg/ghostty-ubuntu
18
19
+ source /etc/os-release
20
+ local ARCH=$(dpkg --print-architecture)
21
+ local GHOSTTY_DEB_URL=$(
22
+ curl -s https://api.github.com/repos/mkasberg/ghostty-ubuntu/releases/latest | \
23
+ grep -oP "https://github.com/mkasberg/ghostty-ubuntu/releases/download/[^\s/]+/ghostty_[^\s/_]+_${ARCH}_${VERSION_ID}.deb"
24
+ )
25
+ local GHOSTTY_DEB_FILE=$(basename "$GHOSTTY_DEB_URL")
26
+ curl -LO "$GHOSTTY_DEB_URL"
27
+ sudo dpkg -i "$GHOSTTY_DEB_FILE"
28
+ rm -v "$GHOSTTY_DEB_FILE"
29
+}
0 commit comments