readme: terminal title

This commit is contained in:
Jens Petersen 2023-11-19 22:20:04 +08:00
parent e9bdb8326d
commit bb3bf018eb

View File

@ -100,6 +100,12 @@ PROMPT_COMMAND=prompt_command
PROMPT_END='${git_branch@P}' PROMPT_END='${git_branch@P}'
``` ```
## Terminal title
Using bash `PROMPT_COMMAND` one can also set the terminal title with:
```
echo -n -e "\e]0;${PROMPT_USERHOST@P}${PROMPT_USERHOST:+:}${PROMPT_DIRECTORY}"
```
## Container support ## Container support
Basic container support can be setup with say: Basic container support can be setup with say:
``` ```