diff --git a/.config/ghostty/README.md b/.config/ghostty/README.md new file mode 100644 index 0000000..88360e3 --- /dev/null +++ b/.config/ghostty/README.md @@ -0,0 +1,17 @@ +# Ghostty config — macOS + +Ghostty sur macOS a un comportement hybride : + +- 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 : + + mkdir -p ~/.config/ghostty/themes + cp .config/ghostty/themes/ultraviolet ~/.config/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..de906ca 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -1,8 +1,9 @@ # ~/.config/starship.toml +# UltraViolet color scheme — https://github.com/Gurvirr/zed-ultraViolet 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] @@ -12,21 +13,23 @@ error_symbol = '' # --- [os] -format = '[$symbol](bold white) ' +format = '[$symbol](bold fg:#DCD8ED) ' disabled = false [os.symbols] -Windows = ' ' -Arch = '󰣇' -Ubuntu = '' -Macos = '󰀵' +Windows = '󰖳 ' +Arch = '󰣇 ' +Ubuntu = '󰕈 ' +Macos = '󰀵 ' +Debian = ' ' +Alpine = ' ' # --- # 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 +37,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 +45,53 @@ 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 + +# 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'] + +# 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']