Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

Bklyn
Copy link

@Bklyn Bklyn commented Nov 16, 2012

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: '

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: '
@sorin-ionescu
Copy link
Owner

Does anybody else want this? I don't have much use for this.

@Bklyn
Copy link
Author

Bklyn commented Dec 21, 2012

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.

@sorin-ionescu
Copy link
Owner

I don't wish to add too many features. People will have to vote for this.

@sorin-ionescu
Copy link
Owner

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.

@martinburger
Copy link

I would like to include the host name as well.

@sorin-ionescu
Copy link
Owner

@martinburger You can put anything in it. See the man page under SIMPLE PROMPT ESCAPES.

@martinburger
Copy link

Oh, sorry - I meant I would like to have that feature as well (= my vote for this feature request).

@sorin-ionescu
Copy link
Owner

I've made some changes to the branch. It's no longer a prefix but a format.

@sorin-ionescu
Copy link
Owner

This is dependent on #362 and #384.

@sorin-ionescu
Copy link
Owner

Does anyone else still want this?

@Bklyn
Copy link
Author

Bklyn commented Nov 26, 2013

I do.

@martinburger
Copy link

I do as well.

@sorin-ionescu
Copy link
Owner

Besides you two.

@sorin-ionescu
Copy link
Owner

Does anyone want to play with the 324 branch? I'd like some feedback if it works properly.

@martinburger
Copy link

I am using that patch for some time and it works as expected as far as I can tell.

@Bklyn
Copy link
Author

Bklyn commented Nov 26, 2013

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?

@sorin-ionescu
Copy link
Owner

I have updated that branch yesterday. Something might have changed.

@Bklyn
Copy link
Author

Bklyn commented Nov 26, 2013

Everything is working fine for me after a fresh pull.

@martinburger
Copy link

I'll try the updated code tomorrow.

@sorin-ionescu
Copy link
Owner

I would like to merge it today if it's okay.

@Bklyn
Copy link
Author

Bklyn commented Nov 26, 2013

ok by me

gmaghera added a commit to gmaghera/prezto that referenced this pull request Nov 30, 2013
* '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
  ...
luxflux added a commit to luxflux/prezto that referenced this pull request Nov 30, 2013
* 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
trongrg pushed a commit to trongrg/prezto that referenced this pull request Dec 13, 2013
atsjj pushed a commit to atsjj/prezto that referenced this pull request Dec 19, 2013
trongrg added a commit to trongrg/prezto that referenced this pull request Jan 11, 2014
* 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
lildude pushed a commit to lildude/prezto that referenced this pull request Jan 12, 2014
autermann added a commit to autermann/prezto that referenced this pull request Jan 13, 2014
* 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
andrebras pushed a commit to andrebras/prezto that referenced this pull request Jan 25, 2014
akarnani pushed a commit to akarnani/prezto that referenced this pull request Feb 5, 2014
matthoffman pushed a commit to matthoffman/oh-my-zsh that referenced this pull request Sep 18, 2014
santiycr pushed a commit to santiycr/prezto that referenced this pull request Nov 9, 2014
mrmurphy pushed a commit to mrmurphy/prezto that referenced this pull request Dec 22, 2014
eprst pushed a commit to eprst/prezto that referenced this pull request Jan 23, 2015
kodelint pushed a commit to kodelint/prezto that referenced this pull request Nov 15, 2016
rooney pushed a commit to rooney/prezto that referenced this pull request Aug 19, 2020
RIT80 pushed a commit to RIT80/prezto that referenced this pull request Jan 25, 2022
RIT80 added a commit to RIT80/prezto that referenced this pull request Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants