... | ... | @@ -101,6 +101,7 @@ Commands Today: 47 |
|
|
|
|
|
##Filtering Commands
|
|
|
You can filter commands from being recorded to Bashhub via a regex set to the environment variable `BH_FILTER`. These commands will be ignored and omittted from Bashhub.
|
|
|
|
|
|
```bash
|
|
|
# Filter out any commands for postgres or ssh
|
|
|
export BH_FILTER="(psql|ssh)"
|
... | ... | @@ -108,6 +109,7 @@ ssh rcaloras@some-ip-address # will not be saved |
|
|
```
|
|
|
|
|
|
You can check the configuration of this command via the `bashhub filter` subcommand.
|
|
|
|
|
|
```bash
|
|
|
# Check if a command is filtered by my regex
|
|
|
export BH_FILTER="(-p)"
|
... | ... | |