Update Ghostty and Starship configs
Update Ghostty config documentation to reflect macOS's hybrid config behavior Add Python module to Starship prompt configuration
This commit is contained in:
@@ -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 :
|
||||
|
||||
|
||||
+10
-1
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user