eat-emacs/integration/bash
Akib Azmain Turja d918dbae87
Add shell integration script for GNU Bash
* integration/bash: New file.
* eat.el (eat-term-shell-integration-directory): New variable.
Contains path to the directory containing the scripts,
automatically updated when Eat is updated.
* eat.el (eat-exec, eat-eshell-mode): New enviroment variable
'EAT_SHELL_INTEGRATION_DIR'.
* eat.texi (Shell Integration): New chapter.
* eat.texi (Directory Tracking): Refer to 'Shell Integration'.
2022-12-03 11:14:01 +06:00

11 lines
321 B
Text

function _eat_prompt_command () {
# Send the current working directory, for directory tracking.
printf "\\e]7;file://%s%s\\e\\\\" "$HOSTNAME" "$PWD"
}
# Add '_eat_prompt_command' as the last element of 'PROMPT_COMMAND'.
PROMPT_COMMAND[${#PROMPT_COMMAND[*]}]=_eat_prompt_command
# Local Variables:
# mode: sh
# End: