Fix ghostty theme names, simplify prompt to hostname-first
- Theme names need spaces: "Catppuccin Mocha" not "catppuccin-mocha" - Prompt now shows hostname instead of username: " FredOS-Gaming ~" - Disable default fish greeting message Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a93996444d
commit
134d597ac5
2 changed files with 6 additions and 9 deletions
|
|
@ -48,6 +48,9 @@
|
|||
|
||||
# Fish prompt and terminal startup
|
||||
programs.fish.interactiveShellInit = ''
|
||||
# Disable default greeting
|
||||
set -g fish_greeting
|
||||
|
||||
# Run fastfetch on terminal start
|
||||
fastfetch --config /etc/fastfetch/config.jsonc
|
||||
|
||||
|
|
@ -62,16 +65,15 @@
|
|||
set_color normal
|
||||
end
|
||||
|
||||
# Line 1: username ~ hostname
|
||||
# Line 1: hostname ~/path
|
||||
set_color green
|
||||
printf ' '
|
||||
set_color yellow
|
||||
printf '%s' $USER
|
||||
printf '%s' (hostname)
|
||||
set_color normal
|
||||
printf ' '
|
||||
|
||||
# Path with colored segments
|
||||
set -l gitdir (command git rev-parse --show-toplevel 2>/dev/null)
|
||||
set -l realhome (string escape --style=regex -- $HOME)
|
||||
set -l path (string replace -r "^$realhome" '~' $PWD)
|
||||
set -l parts (string split '/' $path)
|
||||
|
|
@ -90,11 +92,6 @@
|
|||
end
|
||||
end
|
||||
|
||||
# Hostname
|
||||
set_color brblack
|
||||
printf ' '
|
||||
set_color magenta
|
||||
printf '%s' (hostname)
|
||||
set_color normal
|
||||
printf '\n'
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
home.file.".config/ghostty/config".text = ''
|
||||
font-family = FiraCode Nerd Font
|
||||
font-size = 11
|
||||
theme = dark:catppuccin-mocha,light:catppuccin-latte
|
||||
theme = dark:Catppuccin Mocha,light:Catppuccin Latte
|
||||
window-padding-x = 10
|
||||
window-padding-y = 10
|
||||
confirm-close-surface = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue