New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added user-controllable prefix for window and tab titles #324
Conversation
These new styles that may be used to add a prefix to the window and tab title strings. These undergo prompt expansion. zstyle ':prezto:module:terminal' prefix '%n @ %m: ' zstyle ':prezto:module:terminal' tabprefix '%m: '
Does anybody else want this? I don't have much use for this. |
I find it quite useful to have my terminal windows/tab names include host information when I'm working across many machines at once, but suit yourself. |
I don't wish to add too many features. People will have to vote for this. |
I have done some changes to your commit on https://github.com/sorin-ionescu/prezto/tree/pull/324/. I have not decided if I am going to merge it yet. |
I would like to include the host name as well. |
@martinburger You can put anything in it. See the man page under SIMPLE PROMPT ESCAPES. |
Oh, sorry - I meant I would like to have that feature as well (= my vote for this feature request). |
I've made some changes to the branch. It's no longer a prefix but a format. |
Does anyone else still want this? |
I do. |
I do as well. |
Besides you two. |
Does anyone want to play with the 324 branch? I'd like some feedback if it works properly. |
I am using that patch for some time and it works as expected as far as I can tell. |
Same here. Happily using pull/324 branch. There are two users asking for this feature, and nobody else seems interested enough to object to it, so why not merge it? |
I have updated that branch yesterday. Something might have changed. |
Everything is working fine for me after a fresh pull. |
I'll try the updated code tomorrow. |
I would like to merge it today if it's okay. |
ok by me |
* 'master' of https://github.com/sorin-ionescu/prezto: (22 commits) Update external completions Update external history-substring-search Update external syntax-highlighting Update copyright Fix heading level for "zpreztorc" [Fix sorin-ionescu#503] Prefix rails aliases with 'bundle exec' Warn that Cygwin is not supported Remove utility aliases for Cygwin [Fix sorin-ionescu#324] Add configurable terminal window and tab title formats Unsufix internal functions Prefix internal functions Simplify auto-titling Rewrite terminal auto-title Remove unused GNU Screen window number format [Fix sorin-ionescu#362, Fix sorin-ionescu#384] Set Mac OS X 10.6 terminal window title Comment a typeset Git ignore bundler vendor/assets Do not specify a bundler install path Rewrite _rails-command to work from app subdirectories Add Rails 4 bin path ...
* upstream/master: (22 commits) Update external completions Update external history-substring-search Update external syntax-highlighting Update copyright Fix heading level for "zpreztorc" [Fix sorin-ionescu#503] Prefix rails aliases with 'bundle exec' Warn that Cygwin is not supported Remove utility aliases for Cygwin [Fix sorin-ionescu#324] Add configurable terminal window and tab title formats Unsufix internal functions Prefix internal functions Simplify auto-titling Rewrite terminal auto-title Remove unused GNU Screen window number format [Fix sorin-ionescu#362, Fix sorin-ionescu#384] Set Mac OS X 10.6 terminal window title Comment a typeset Git ignore bundler vendor/assets Do not specify a bundler install path Rewrite _rails-command to work from app subdirectories Add Rails 4 bin path ... Conflicts: modules/completion/external modules/history-substring-search/external modules/syntax-highlighting/external
* upstream_master: (36 commits) [Fix sorin-ionescu#522] Do not load the terminal module in non-graphical terminals [Fix sorin-ionescu#516] Define ZLE functions separately Revert "Warn that Cygwin is not supported" Revert "Remove utility aliases for Cygwin" Don't use sudo if implicitly called by Pacman frontend [Fix sorin-ionescu#514] Use /tmp when $TMPDIR is undefined Fix README.md: PATH was moved from .zshenv to .zprofile [Fix sorin-ionescu#523] Ensure zprofile exists before sourcing it Allow functions in a module to be symlinks Update copyright Refactor Bundler aliases Update external completions Update external history-substring-search Update external syntax-highlighting Update copyright Fix heading level for "zpreztorc" [Fix sorin-ionescu#503] Prefix rails aliases with 'bundle exec' Warn that Cygwin is not supported Remove utility aliases for Cygwin [Fix sorin-ionescu#324] Add configurable terminal window and tab title formats ... Conflicts: README.md modules/ruby/init.zsh runcoms/zshenv
* upstream/master: (36 commits) [Fix sorin-ionescu#522] Do not load the terminal module in non-graphical terminals [Fix sorin-ionescu#516] Define ZLE functions separately Revert "Warn that Cygwin is not supported" Revert "Remove utility aliases for Cygwin" Don't use sudo if implicitly called by Pacman frontend [Fix sorin-ionescu#514] Use /tmp when $TMPDIR is undefined Fix README.md: PATH was moved from .zshenv to .zprofile [Fix sorin-ionescu#523] Ensure zprofile exists before sourcing it Allow functions in a module to be symlinks Update copyright Refactor Bundler aliases Update external completions Update external history-substring-search Update external syntax-highlighting Update copyright Fix heading level for "zpreztorc" [Fix sorin-ionescu#503] Prefix rails aliases with 'bundle exec' Warn that Cygwin is not supported Remove utility aliases for Cygwin [Fix sorin-ionescu#324] Add configurable terminal window and tab title formats ... Conflicts: prezto/modules/completion/external prezto/modules/history-substring-search/external prezto/modules/syntax-highlighting/external runcoms/README.md runcoms/zpreztorc runcoms/zprofile zshenv
Correct misspellings
These new styles that may be used to add a prefix to the window and
tab title strings. These undergo prompt expansion.
zstyle ':prezto:module:terminal' prefix '%n @ %m: '
zstyle ':prezto:module:terminal' tabprefix '%m: '