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
|
# Fish prompt and terminal startup
|
||||||
programs.fish.interactiveShellInit = ''
|
programs.fish.interactiveShellInit = ''
|
||||||
|
# Disable default greeting
|
||||||
|
set -g fish_greeting
|
||||||
|
|
||||||
# Run fastfetch on terminal start
|
# Run fastfetch on terminal start
|
||||||
fastfetch --config /etc/fastfetch/config.jsonc
|
fastfetch --config /etc/fastfetch/config.jsonc
|
||||||
|
|
||||||
|
|
@ -62,16 +65,15 @@
|
||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
||||||
|
|
||||||
# Line 1: username ~ hostname
|
# Line 1: hostname ~/path
|
||||||
set_color green
|
set_color green
|
||||||
printf ' '
|
printf ' '
|
||||||
set_color yellow
|
set_color yellow
|
||||||
printf '%s' $USER
|
printf '%s' (hostname)
|
||||||
set_color normal
|
set_color normal
|
||||||
printf ' '
|
printf ' '
|
||||||
|
|
||||||
# Path with colored segments
|
# 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 realhome (string escape --style=regex -- $HOME)
|
||||||
set -l path (string replace -r "^$realhome" '~' $PWD)
|
set -l path (string replace -r "^$realhome" '~' $PWD)
|
||||||
set -l parts (string split '/' $path)
|
set -l parts (string split '/' $path)
|
||||||
|
|
@ -90,11 +92,6 @@
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Hostname
|
|
||||||
set_color brblack
|
|
||||||
printf ' '
|
|
||||||
set_color magenta
|
|
||||||
printf '%s' (hostname)
|
|
||||||
set_color normal
|
set_color normal
|
||||||
printf '\n'
|
printf '\n'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
home.file.".config/ghostty/config".text = ''
|
home.file.".config/ghostty/config".text = ''
|
||||||
font-family = FiraCode Nerd Font
|
font-family = FiraCode Nerd Font
|
||||||
font-size = 11
|
font-size = 11
|
||||||
theme = dark:catppuccin-mocha,light:catppuccin-latte
|
theme = dark:Catppuccin Mocha,light:Catppuccin Latte
|
||||||
window-padding-x = 10
|
window-padding-x = 10
|
||||||
window-padding-y = 10
|
window-padding-y = 10
|
||||||
confirm-close-surface = false
|
confirm-close-surface = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue