add ghostty config for local installs

This commit is contained in:
Brent Schroeter 2026-04-01 10:21:10 -07:00
parent 587871859c
commit 01b97a3249
2 changed files with 21 additions and 1 deletions

7
assets/ghostty/config Normal file
View file

@ -0,0 +1,7 @@
theme = Dracula
font-family = Iosevka Term
font-size = 12
font-thicken = true
command = /opt/homebrew/bin/fish
macos-titlebar-style = tabs
scrollback-limit = 100000000

View file

@ -3,7 +3,7 @@
set -f DEFAULT_FULL_NAME 'Brent Schroeter'
argparse -S 'email=' 'full-name=' install-mise overwrite -- $argv
argparse -S 'email=' 'full-name=' ghostty install-mise overwrite -- $argv
if not set -ql _flag_full_name
set -f _flag_full_name "$DEFAULT_FULL_NAME"
@ -51,3 +51,16 @@ if set -ql _flag_install_mise
end
mise install
end
if set -ql _flag_ghostty
if [ "$(uname)" = Darwin ]
if set -ql _flag_overwrite; or not test -e ~/Library/Application\ Support/com.mitchellh.ghostty/config
mkdir -p ~/Library/Application\ Support/com.mitchellh.ghostty
cp ./assets/ghostty/config ~/Library/Application\ Support/com.mitchellh.ghostty/config
else
echo 'Ghostty config already exists. Use --overwrite to replace it.' >&2
end
else
echo 'Ghostty setup on Linux is not yet supported. Skipping.' >&2
end
end