Actualiser README.md
This commit is contained in:
parent
51cac587e2
commit
b5d31b3764
23
README.md
23
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user