Mise à jour de 'infra/ bash.md'
This commit is contained in:
parent
81ebaac8a4
commit
3ea3c5bbd5
1 changed files with 20 additions and 2 deletions
|
@ -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:~#
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue