dotfiles/dot_config/fish/config.fish.tmpl

36 lines
928 B
Cheetah
Raw Normal View History

2026-01-28 17:46:39 +00:00
if status is-interactive
# Fix for terminals without terminfo on server (e.g., Ghostty)
if not test -e /usr/share/terminfo/$TERM[1]/$TERM
set -gx TERM xterm-256color
end
# Disable OSC 133 shell integration
functions -e __fish_on_interactive_startup_done
functions -e __fish_prompt_initialized
end
# Clear screen AND scrollback with Ctrl+L
bind \cl 'printf "\e[2J\e[3J\e[H"; commandline -f repaint'
# PATH setup
fish_add_path -g ~/.local/bin
{{- if eq .machine "macbook" }}
# macOS-specific: Homebrew paths
fish_add_path -g /opt/homebrew/bin
fish_add_path -g /opt/homebrew/sbin
{{- end }}
{{- if eq .machine "server" }}
2026-01-28 18:23:51 +00:00
# Server-specific: SSH key caching and Helix runtime
keychain --eval --quiet id_ed25519 | source
2026-01-28 17:46:39 +00:00
set -gx HELIX_RUNTIME /usr/local/lib/helix/runtime
{{- end }}
# GPG TTY for signing
set -gx GPG_TTY (tty)
# Editor
set -gx EDITOR {{ .editor }}
set -gx VISUAL {{ .editor }}