Command duration documentation

pull/1683/head
BarbUk 2020-10-20 13:45:56 +02:00
parent 07305366bb
commit 1a6c3330bc
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
1 changed files with 16 additions and 0 deletions

View File

@ -29,6 +29,7 @@ BARBUK_GIT_BRANCH_ICON=''
BARBUK_HG_CHAR='☿ '
BARBUK_SVN_CHAR='⑆ '
BARBUK_EXIT_CODE_ICON=' '
BARBUK_COMMAND_DURATION_ICON='  '
```
### Customize glyphs
@ -78,6 +79,14 @@ EOF
chmod 400 /etc/sudoers.d/keepenv
```
## Command duration
Command duration is enabled by default and can be disabled:
```bash
export BARBUK_COMMAND_DURATION=false
```
## Examples
### Clean
@ -97,3 +106,10 @@ chmod 400 /etc/sudoers.d/keepenv
```bash
user@hostname in  ~/bash-it on  master ✓
```
### Command duration
```bash
# sleep 3s
user@hostname in  ~/bash-it on  master ✓  3s
```