From 3ea3c5bbd570590cf668e6cbdfe9439af5961243 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 9 Nov 2021 18:13:39 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'infra/=20bash.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/ bash.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/infra/ bash.md b/infra/ bash.md index f766386..efda73b 100644 --- a/infra/ bash.md +++ b/infra/ bash.md @@ -1,6 +1,24 @@ # Bash -Customize prompt: +# Customize prompt: + +Avant : ``` -PS1={hostname}-{now:%Y-%m-%dT%H:%M:%S.%f} +root@libre-service:~# +``` + +Modifier le nom de la machine : +``` +hostnamectl set-hostname libre-service.eu +``` + + +Modifier /root/.bahsrc : +``` +PS1='${debian_chroot:+($debian_chroot)}\u@\H:\w\$ ' +``` + +Après : +``` +root@libre-service.eu:~# ```