Update documentation to explain new BARBUK_HOST_INFO configuration

pull/1536/head
BarbUk 2020-04-01 01:02:24 +04:00
parent 347995d33e
commit 78db4d56f0
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
1 changed files with 9 additions and 3 deletions

View File

@ -42,10 +42,16 @@ source "$BASH_IT"/bash_it.sh
### Usage ### Usage
When using a ssh session, the theme will display `user@fqdn`. When using a ssh session, the theme will display `user@hostname`.
You can disable this information before sourcing bsah-it: You can disable this information with `BARBUK_SSH_INFO`.
The hostname is display in the FQDN format by default. You
can use the short hostname format with `BARBUK_HOST_INFO`.
```bash ```bash
# short or long
export BARBUK_HOST_INFO=short
# true or false
export BARBUK_SSH_INFO=false export BARBUK_SSH_INFO=false
source "$BASH_IT"/bash_it.sh source "$BASH_IT"/bash_it.sh
``` ```
@ -87,5 +93,5 @@ chmod 400 /etc/sudoers.d/keepenv
### Ssh ### Ssh
```bash ```bash
user@fqdn in  ~/bash-it on  master ✓ user@hostname in  ~/bash-it on  master ✓
``` ```