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']