diff --git a/assets/ghostty/config b/assets/ghostty/config new file mode 100644 index 0000000..50149c5 --- /dev/null +++ b/assets/ghostty/config @@ -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 \ No newline at end of file diff --git a/local-install.fish b/local-install.fish index 4c81094..e15e2ce 100644 --- a/local-install.fish +++ b/local-install.fish @@ -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