2022-12-03 21:30:11 +06:00
|
|
|
__eat_prompt_command () {
|
2022-12-03 11:14:01 +06:00
|
|
|
# Send the current working directory, for directory tracking.
|
|
|
|
printf "\\e]7;file://%s%s\\e\\\\" "$HOSTNAME" "$PWD"
|
|
|
|
}
|
|
|
|
|
2022-12-03 21:30:11 +06:00
|
|
|
# Add '__eat_prompt_command' as the last element of 'PROMPT_COMMAND'.
|
|
|
|
if test -z "$__eat_bash_integration_enabled"
|
2022-12-03 19:21:28 +06:00
|
|
|
then
|
2022-12-03 21:30:11 +06:00
|
|
|
__eat_bash_integration_enabled=yes
|
|
|
|
PROMPT_COMMAND+=(__eat_prompt_command)
|
2022-12-03 19:21:28 +06:00
|
|
|
fi
|
2022-12-03 11:14:01 +06:00
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# mode: sh
|
|
|
|
# End:
|