... | @@ -101,6 +101,7 @@ Commands Today: 47 |
... | @@ -101,6 +101,7 @@ Commands Today: 47 |
|
|
|
|
|
##Filtering Commands
|
|
##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.
|
|
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
|
|
```bash
|
|
# Filter out any commands for postgres or ssh
|
|
# Filter out any commands for postgres or ssh
|
|
export BH_FILTER="(psql|ssh)"
|
|
export BH_FILTER="(psql|ssh)"
|
... | @@ -108,6 +109,7 @@ ssh rcaloras@some-ip-address # will not be saved |
... | @@ -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.
|
|
You can check the configuration of this command via the `bashhub filter` subcommand.
|
|
|
|
|
|
```bash
|
|
```bash
|
|
# Check if a command is filtered by my regex
|
|
# Check if a command is filtered by my regex
|
|
export BH_FILTER="(-p)"
|
|
export BH_FILTER="(-p)"
|
... | | ... | |