Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ brew 'kubecolor'
tap 'go-task/tap'
brew 'go-task/tap/go-task'

brew 'helix'
brew 'awscli'
brew 'pv'
brew 'wget'
Expand Down
3 changes: 2 additions & 1 deletion ghostty/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# https://ghostty.org/docs/config

# Font configuration
font-family = "Menlo"
font-family = "Berkeley Mono"
font-size = 13

# Window appearance
window-padding-x = 10
window-padding-y = 10
macos-option-as-alt = true
background-opacity = 1.0
theme = "nord-night"

# Basic behavior
shell-integration = "detect"
Expand Down
29 changes: 23 additions & 6 deletions ghostty/install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
#! /bin/bash
#!/bin/bash
set -euo pipefail

# Create the config directory if it doesn't exist
mkdir -p "$HOME/Library/Application Support/com.mitchellh.ghostty"
CONFIG_DIR="$HOME/Library/Application Support/com.mitchellh.ghostty"
XDG_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/ghostty"
THEMES_SRC_DIR="$DOTFILES/ghostty/themes"

# Symlink the config file
ln -sf "$DOTFILES/ghostty/config" "$HOME/Library/Application Support/com.mitchellh.ghostty/config"
mkdir -p "$CONFIG_DIR" "$XDG_CONFIG_DIR"

echo "Ghostty config symlinked to $HOME/Library/Application Support/com.mitchellh.ghostty/config"
ln -sf "$DOTFILES/ghostty/config" "$CONFIG_DIR/config"
ln -sf "$DOTFILES/ghostty/config" "$XDG_CONFIG_DIR/config"

link_themes() {
local destination="$1"
mkdir -p "$destination"
if [ -d "$THEMES_SRC_DIR" ]; then
find "$THEMES_SRC_DIR" -mindepth 1 -maxdepth 1 -type f -print0 | while IFS= read -r -d '' theme; do
ln -sf "$theme" "$destination/$(basename "$theme")"
done
fi
}

link_themes "$CONFIG_DIR/themes"
link_themes "$XDG_CONFIG_DIR/themes"

echo "Ghostty config and themes linked under $CONFIG_DIR and $XDG_CONFIG_DIR"
24 changes: 24 additions & 0 deletions ghostty/themes/nord-night
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nord Night palette adapted for Ghostty
background = #252933
foreground = #c0c5cf
selection-foreground = #4c566a
selection-background = #eceff4
cursor-color = #eceff4
cursor-text = #252933

palette = 0=#3b4252
palette = 1=#bf616a
palette = 2=#a3be8c
palette = 3=#ebcb8b
palette = 4=#81a1c1
palette = 5=#b48ead
palette = 6=#88c0d0
palette = 7=#e5e9f0
palette = 8=#596377
palette = 9=#bf616a
palette = 10=#a3be8c
palette = 11=#ebcb8b
palette = 12=#81a1c1
palette = 13=#b48ead
palette = 14=#8fbcbb
palette = 15=#eceff4
31 changes: 31 additions & 0 deletions helix/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
theme = "nord-night"

[editor]
line-number = "relative"
cursorline = true
true-color = true
color-modes = true
bufferline = "multiple"
scrolloff = 5

[editor.lsp]
display-inlay-hints = true
auto-signature-help = false

[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"

[editor.file-picker]
hidden = false
git-ignore = true

[editor.soft-wrap]
enable = true

[editor.indent-guides]
render = true

[keys.insert]
"C-s" = ":w"
11 changes: 11 additions & 0 deletions helix/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
#
# Install Helix configuration.
set -euo pipefail

HELIX_CONFIG_DIR="${HOME}/.config/helix"
mkdir -p "${HELIX_CONFIG_DIR}"

ln -sf "${DOTFILES}/helix/config.toml" "${HELIX_CONFIG_DIR}/config.toml"

echo "Helix config symlinked to ${HELIX_CONFIG_DIR}/config.toml"