From f0a1a9bb2970c16ee4578fcf87870a4117db7343 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 21 Jun 2026 10:44:29 +0200 Subject: [PATCH 1/4] Add Ghostty UltraViolet theme, adjust starship colors to match --- .config/ghostty/README.md | 14 ++++++++ .config/ghostty/themes/ultraviolet | 27 ++++++++++++++++ .config/starship.toml | 52 +++++++++++++++--------------- 3 files changed, 67 insertions(+), 26 deletions(-) create mode 100644 .config/ghostty/README.md create mode 100644 .config/ghostty/themes/ultraviolet diff --git a/.config/ghostty/README.md b/.config/ghostty/README.md new file mode 100644 index 0000000..e298adc --- /dev/null +++ b/.config/ghostty/README.md @@ -0,0 +1,14 @@ +# Ghostty config — macOS + +Ghostty sur macOS ne lit pas `~/.config/ghostty/`, mais : + + ~/Library/Application Support/com.mitchellh.ghostty/ + +Comme il n'y a pas (encore) de symlink automatisé, copier à la main : + + cp .config/ghostty/themes/ultraviolet \ + "~/Library/Application Support/com.mitchellh.ghostty/themes/ultraviolet" + +Puis dans `~/Library/Application Support/com.mitchellh.ghostty/config`, ajouter : + + theme = ultraviolet diff --git a/.config/ghostty/themes/ultraviolet b/.config/ghostty/themes/ultraviolet new file mode 100644 index 0000000..ebfb6e0 --- /dev/null +++ b/.config/ghostty/themes/ultraviolet @@ -0,0 +1,27 @@ +# UltraViolet theme for Ghostty +# Source: https://github.com/Gurvirr/zed-ultraViolet + +background = 0B0C10 +foreground = DCD8ED + +cursor-color = 6F78FF +cursor-text = 0B0C10 +selection-background = 222226 +selection-foreground = F2F4F8 + +palette = 0=#282828 +palette = 1=#FF6FAE +palette = 2=#08BD8A +palette = 3=#E297DB +palette = 4=#6F78FF +palette = 5=#C58FFF +palette = 6=#B3BCEF +palette = 7=#DCD8ED +palette = 8=#3A3A3A +palette = 9=#FF9BC3 +palette = 10=#3DD4A6 +palette = 11=#F2B1ED +palette = 12=#8B92FF +palette = 13=#D3A8FF +palette = 14=#CAD1FF +palette = 15=#FFFFFF diff --git a/.config/starship.toml b/.config/starship.toml index c8d7147..a07a540 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -1,4 +1,5 @@ # ~/.config/starship.toml +# UltraViolet color scheme — https://github.com/Gurvirr/zed-ultraViolet add_newline = false command_timeout = 1000 @@ -12,21 +13,21 @@ error_symbol = '' # --- [os] -format = '[$symbol](bold white) ' +format = '[$symbol](bold fg:#DCD8ED) ' disabled = false [os.symbols] -Windows = ' ' +Windows = '󰖳 ' Arch = '󰣇' -Ubuntu = '' +Ubuntu = '󰕈' Macos = '󰀵' # --- # Shows the username [username] -style_user = 'white bold' -style_root = 'black bold' +style_user = 'fg:#DCD8ED bold' +style_root = 'fg:#FF6FAE bold' format = '[$user]($style) ' disabled = false show_always = true @@ -34,7 +35,7 @@ show_always = true # Shows the hostname [hostname] ssh_only = false -format = 'on [$hostname](bold purple) ' +format = 'on [$hostname](bold fg:#6F78FF) ' disabled = false # Shows current directory @@ -42,35 +43,34 @@ disabled = false truncation_length = 1 truncation_symbol = '…/' home_symbol = '󰋜 ~' -read_only_style = '197' -read_only = '  ' -format = 'at [$path]($style)[$read_only]($read_only_style) ' +read_only_style = 'fg:#FF6FAE' +read_only = ' 󰌾 ' +format = 'at [$path](fg:#C58FFF)[$read_only]($read_only_style) ' # Shows current git branch [git_branch] -symbol = ' ' +symbol = '󰊢 ' format = 'via [$symbol$branch]($style)' -# truncation_length = 4 truncation_symbol = '…/' -style = 'bold green' +style = 'bold fg:#08BD8A' # Shows current git status [git_status] format = '([ \( $all_status$ahead_behind\)]($style) )' -style = 'bold green' -conflicted = '[ confliced=${count}](red) ' -up_to_date = '[󰘽 up-to-date](green) ' -untracked = '[󰋗 untracked=${count}](red) ' -ahead = ' ahead=${count}' -diverged = ' ahead=${ahead_count}  behind=${behind_count}' -behind = ' behind=${count}' -stashed = '[ stashed=${count}](green) ' -modified = '[󰛿 modified=${count}](yellow) ' -staged = '[󰐗 staged=${count}](green) ' -renamed = '[󱍸 renamed=${count}](yellow) ' -deleted = '[󰍶 deleted=${count}](red) ' +style = 'bold fg:#08BD8A' +conflicted = '[󰽉 conflicted=${count}](fg:#FF6FAE) ' +up_to_date = '[󰸞 up-to-date](fg:#08BD8A) ' +untracked = '[󰋘 untracked=${count}](fg:#FF6FAE) ' +ahead = '[󰜷 ahead=${count}]' +diverged = '[󰜷 ahead=${ahead_count} 󰜸 behind=${behind_count}]' +behind = '[󰜸 behind=${count}]' +stashed = '[󱀇 stashed=${count}](fg:#08BD8A) ' +modified = '[󰷈 modified=${count}](fg:#E297DB) ' +staged = '[󰐗 staged=${count}](fg:#08BD8A) ' +renamed = '[󱍸 renamed=${count}](fg:#E297DB) ' +deleted = '[󰍶 deleted=${count}](fg:#FF6FAE) ' # Shows kubernetes context and namespace [kubernetes] -format = 'via [󱃾 $context\($namespace\)](bold purple) ' -disabled = false \ No newline at end of file +format = 'via [󱃾 $context\($namespace\)](bold fg:#6F78FF) ' +disabled = false From 65661321925b12088cbb1cf08e9744e8212f1208 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 21 Jun 2026 11:29:40 +0200 Subject: [PATCH 2/4] Update Ghostty and Starship configs Update Ghostty config documentation to reflect macOS's hybrid config behavior Add Python module to Starship prompt configuration --- .config/ghostty/README.md | 11 +++++++---- .config/starship.toml | 11 ++++++++++- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.config/ghostty/README.md b/.config/ghostty/README.md index e298adc..88360e3 100644 --- a/.config/ghostty/README.md +++ b/.config/ghostty/README.md @@ -1,13 +1,16 @@ # Ghostty config — macOS -Ghostty sur macOS ne lit pas `~/.config/ghostty/`, mais : +Ghostty sur macOS a un comportement hybride : - ~/Library/Application Support/com.mitchellh.ghostty/ +- Le fichier de config principal va dans : + ~/Library/Application Support/com.mitchellh.ghostty/config +- Les thèmes custom, eux, restent lus depuis l'emplacement XDG classique : + ~/.config/ghostty/themes/ Comme il n'y a pas (encore) de symlink automatisé, copier à la main : - cp .config/ghostty/themes/ultraviolet \ - "~/Library/Application Support/com.mitchellh.ghostty/themes/ultraviolet" + mkdir -p ~/.config/ghostty/themes + cp .config/ghostty/themes/ultraviolet ~/.config/ghostty/themes/ultraviolet Puis dans `~/Library/Application Support/com.mitchellh.ghostty/config`, ajouter : diff --git a/.config/starship.toml b/.config/starship.toml index a07a540..f6f28d8 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -3,7 +3,7 @@ add_newline = false command_timeout = 1000 -format = """$os$username$hostname$kubernetes$directory$git_branch$git_status""" +format = """$os$username$hostname$kubernetes$directory$python$git_branch$git_status""" # Drop ugly default prompt characters [character] @@ -74,3 +74,12 @@ deleted = '[󰍶 deleted=${count}](fg:#FF6FAE) ' [kubernetes] format = 'via [󱃾 $context\($namespace\)](bold fg:#6F78FF) ' disabled = false + +# Shows current Python version and virtualenv +[python] +symbol = '󰌠 ' +format = 'via [$symbol${version}( \($virtualenv\))]($style) ' +style = 'bold fg:#E297DB' +pyenv_version_name = false +detect_extensions = ['py'] +detect_files = ['.python-version', 'pyproject.toml', 'requirements.txt', 'setup.py', 'Pipfile'] From 183c4eb1248c00704b2b1bf763a96bdc08841ff8 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 21 Jun 2026 11:31:52 +0200 Subject: [PATCH 3/4] Update Starship OS symbols Add Debian and Alpine symbols Update spacing for existing symbols --- .config/starship.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/starship.toml b/.config/starship.toml index f6f28d8..898e2b4 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -18,9 +18,11 @@ disabled = false [os.symbols] Windows = '󰖳 ' -Arch = '󰣇' -Ubuntu = '󰕈' -Macos = '󰀵' +Arch = '󰣇 ' +Ubuntu = '󰕈 ' +Macos = '󰀵 ' +Debian = ' ' +Alpine = ' ' # --- From ce4cb5e63c1711f207d8f1f633b6537bb77ca302 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 21 Jun 2026 11:33:29 +0200 Subject: [PATCH 4/4] Update starship config with ContainerLab module Add custom module to display ContainerLab topology name when present in the directory --- .config/starship.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.config/starship.toml b/.config/starship.toml index 898e2b4..de906ca 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -85,3 +85,13 @@ style = 'bold fg:#E297DB' pyenv_version_name = false detect_extensions = ['py'] detect_files = ['.python-version', 'pyproject.toml', 'requirements.txt', 'setup.py', 'Pipfile'] + +# Shows if a ContainerLab topology file is present in the current directory +[custom.containerlab] +description = "Shows ContainerLab topology name when present" +command = 'grep -m1 "^name:" *.clab.y*ml 2>/dev/null | head -1 | cut -d: -f2 | xargs' +when = 'ls *.clab.yml *.clab.yaml 2>/dev/null | grep -q .' +symbol = '󰒍 ' +format = 'via [$symbol($output)]($style) ' +style = 'bold fg:#C58FFF' +shell = ['bash', '--noprofile', '--norc']