### Set per-hook terminal title formats Source: https://github.com/zimfw/termtitle/blob/master/README.md Sets a custom title format for each hook. This example shows the command name during execution and the current directory name after the command ends (before each prompt). ```zsh zstyle ':zim:termtitle' hooks 'preexec' 'precmd' zstyle ':zim:termtitle:preexec' format '${${(Az)1}[1]}' zstyle ':zim:termtitle:precmd' format '%1~' ``` -------------------------------- ### Set custom terminal title format with zstyle Source: https://github.com/zimfw/termtitle/blob/master/README.md Sets the terminal title format using prompt expansion escape sequences. The default format is `%n@%m: %~` (username@host: /path/to/working/directory). This example shows the current directory name. ```zsh zstyle ':zim:termtitle' format '%1~' ``` -------------------------------- ### Customize hooks for terminal title updates Source: https://github.com/zimfw/termtitle/blob/master/README.md Customizes which hooks trigger the terminal title update. By default, the title updates before each prompt. This example updates the title before command execution (preexec) and before each prompt (precmd). ```zsh zstyle ':zim:termtitle' hooks 'preexec' 'precmd' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.