1
0
Bifurcation 0
miroir de https://github.com/PAPAMICA/Wiki-Tech.io.git synchronisé 2024-09-19 06:05:09 +02:00

docs: update Linux/Débutant/Terminal

Cette révision appartient à :
Mickael Asseline 2021-09-10 08:59:36 +00:00 révisé par Mickael Asseline
Parent 23d61b3641
révision 1644e66b0b

Voir le fichier

@ -2,7 +2,7 @@
title: Linux - Terminal
description: Toutes les astuces pour votre terminal !
published: true
date: 2021-08-26T08:25:00.604Z
date: 2021-09-10T08:59:32.063Z
tags:
editor: markdown
dateCreated: 2021-05-24T10:35:34.861Z
@ -236,6 +236,26 @@ Ajoute une personnalisation bien plus poussée du terminal. Compatible avec Oh-M
Lien officiel : [Github](https://github.com/romkatv/powerlevel10k)
### Ajout des informations OpenStack
![p10k-openstack.png](/images/linux/terminal/p10k-openstack.png)
Ajoutez dans le fichiers `~/.p10k.zsh ` la fonction suivante :
```bash
function prompt_openstack() {
if [[ -n $OS_PASSWORD ]]; then
p10k segment -b blue -f '#ffffff' -i '' -t "$OS_CLOUD |  $OS_PROJECT_NAME |  $OS_USERNAME"
fi
}
```
Et modifiez cette ligne `typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS` en ajoutant `openstack` :
```bash
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
os_icon # os identifier
dir # current directory
vcs # git status
openstack # display current openstack config
)
```
## Bash-completion
Comme son nom l'indique, améliore l'autocompletion de bash