diff --git a/README.md b/README.md index 0135f38..fa7d544 100644 --- a/README.md +++ b/README.md @@ -111,14 +111,15 @@ Ce dépôt contient un fichier `starship.toml` prêt à l’emploi pour personna - **Bash** (`~/.bashrc`) : ```bash eval "$(starship init bash)" - ``` - - **Zsh** (`~/.zshrc`) : - ```bash - eval "$(starship init zsh)" - ``` - - **Fish** (`~/.config/fish/config.fish`) : - ```fish - starship init fish | source + # sauvegarde prudente + cp -a /root/.bashrc /root/.bashrc.bak-$(date +%F-%H%M) + + # activer starship dans bash + grep -q 'starship init bash' /root/.bashrc || \ + printf '\n%s\n' 'eval "$(starship init bash)"' >> /root/.bashrc + + # recharger la config + . /root/.bashrc ``` 3. **Relancer** le shell. @@ -135,12 +136,6 @@ Au lieu de copier manuellement, vous pouvez directement récupérer le fichier a curl -fsSL https://git.eldunar.fr/TonyLight/Starship.git/raw/branch/main/starship.toml -o ~/.config/starship.toml ``` -ou - -```bash -wget -O ~/.config/starship.toml https://git.eldunar.fr/TonyLight/Starship.git/raw/branch/main/starship.toml -``` - ### Windows PowerShell ```powershell