2024-01-27 19:04:33 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
_prompt_command_add() {
|
|
|
|
if [ -n "$1" ] && [[ ":$PROMPT_COMMAND:" != *":$1:"* ]]; then
|
2024-01-27 19:23:31 +01:00
|
|
|
PROMPT_COMMAND="${PROMPT_COMMAND:+"$PROMPT_COMMAND;"}$1"
|
2024-01-27 19:04:33 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
export PROMPT_COMMAND
|