10 lines
200 B
Bash
10 lines
200 B
Bash
#!/bin/bash
|
|
|
|
_prompt_command_add() {
|
|
if [ -n "$1" ] && [[ ":$PROMPT_COMMAND:" != *":$1:"* ]]; then
|
|
PROMPT_COMMAND="${PROMPT_COMMAND:+"$PROMPT_COMMAND:"}$1"
|
|
fi
|
|
}
|
|
|
|
export PROMPT_COMMAND
|