plugins/xterm: Refactor

* plugins/xterm: Add header line as an OMB plugin
* plugins/xterm: Add link to the upstream version
* plugins/xterm: Add the list of the configuration variables
* plugins/xterm: Do not rely on the function "cite"
* plugins/xterm: Add dependency to bash-preexec
* plugins/xterm: Use "function func" to avoid aliasing
* plugins/xterm: Namespacing function names
* plugins/xterm: Namespacing configuration variables
* plugins/xterm (_omb_plugin_xterm_set_title): Avoid expanding escapes in directory names, etc.
* plugins/xterm: Always enable precmd/preexec because the plugin should be enabled by the users' decision
* plugins/xterm: Do no unneccessarily add braces around ${var}
* plugins/xterm: Do no uneccessarily quote words
* plugins/xterm: Add README
This commit is contained in:
Koichi Murase
2022-10-02 10:36:05 +09:00
parent 4026ab6380
commit 9ac2a92906
2 changed files with 44 additions and 34 deletions

3
plugins/xterm/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Xterm plugin
This plugin sets the xterm title for the current directory and the currently running command.