It's not high priority but it's something useful.
In some cases you have several commands running in multiple tabs that looks the same but in different projects (example: frontend node dev command and API node dev command).
It would be nice to be able to manually change the name, like Terminal.app on OSX:
You may want to check my hyperterm-title plugin.
It sets the title of tabs in the same way that iTerm does
@parro-it it's great, but it's not exactly what Terminal.app does. You can't manually change the title in this case.
Perhaps this is better as a plugin?
Perhaps this is better as a plugin?
Yes, I agree. it would be great to have a context menu in the tab to add a 'Chnage tab name' item.
It would also be great to write a change tab color
plugin, I use this feature very often in iterm...
The plugin works great for me.
In bash I have a function to set the title. Besides one tweak, this has been working for me for all other terminal programs as well:
function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }
@kbrock 馃憤 I put this in .bash_profile
and with the hyperterm-title plugin I can set the title as easy as title "hello hyper"
.
@jadaradix @lardissone I added the sample function over in parro-it/hyperterm-title#3
Hopefully it will be more friendly to others who have this need
IMO this functionality is much nearer 'core' than "install this third-party plugin, add this to your shell config, and then run this command".
@OJFord Think this functionality is already in master and will come out in the next release without the title ==> https://github.com/zeit/hyper/pull/892
@kbrock does that PR resolve this issue? It looks like a coding update, not a way for users to set tab titles. As per https://github.com/parro-it/hyperterm-title, this is in fact in core, and the issue should probably be resolved.
Agreed. Thanks!
Is this functionality available in version 2.0.0? I'm on mac and don't see this option anywhere.
Thanks
It's not an option, you have to set it via shell commands.
You can see above how...
TL;DR
function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }
source ~/.bash_profile
title NEW_TITLE
to change tab titleCan someone explain how to get this working on a Windows 10 + Git Bash environment?
@terrancecorley
add your title text to your local bash profile.
https://stackoverflow.com/questions/46458832/how-to-change-title-of-git-terminal-in-windows
For reference, people looking to do this when using PowerShell, you can use this function to achieve the same (and not having it display Shell
because that's silly)
function Set-ConsoleTitle {
param(
[string]
$title
)
$escapeChar = [char]27
return "$escapeChar]2;$title`a"
}
Set-ConsoleTitle PowerShell
- Add this line to your .bash_profile file:
function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }
- reload terminal, or type command:
source ~/.bash_profile
- type
title NEW_TITLE
to change tab title
hi, I use WSL and this simply doesn't work :
function title ()
{
echo -e "\033]0;${1:?please specify a title}\007"
}
in ~/.bash_aliases
after being sourced it just returns an empty line in the console, no change in the tab name :
kro@minipoutre ~ title
-bash: 1: please specify a title
kro@minipoutre ~ title 'test'
kro@minipoutre ~
I use hyper 2.1.2 and I'm brand new to it. Has anything changed lately ?
- Add this line to your .bash_profile file:
function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }
- reload terminal, or type command:
source ~/.bash_profile
- type
title NEW_TITLE
to change tab titlehi, I use WSL and this simply doesn't work :
function title () { echo -e "\033]0;${1:?please specify a title}\007" }
in ~/.bash_aliases
after being sourced it just returns an empty line in the console, no change in the tab name :
kro@minipoutre ~ title -bash: 1: please specify a title kro@minipoutre ~ title 'test' kro@minipoutre ~
I use hyper 2.1.2 and I'm brand new to it. Has anything changed lately ?
- Add this line to your .bash_profile file:
function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }
- reload terminal, or type command:
source ~/.bash_profile
- type
title NEW_TITLE
to change tab titlehi, I use WSL and this simply doesn't work :
function title () { echo -e "\033]0;${1:?please specify a title}\007" }
in ~/.bash_aliases
after being sourced it just returns an empty line in the console, no change in the tab name :
kro@minipoutre ~ title -bash: 1: please specify a title kro@minipoutre ~ title 'test' kro@minipoutre ~
I use hyper 2.1.2 and I'm brand new to it. Has anything changed lately ?
I'm running into same problem in ubuntu 18.04, looking for help
This works for me in Ubuntu 18.04
function title(){
if [[ -z "$ORIG" ]]; then
ORIG="$PS1"
fi
TITLE="\[\e]2;$*\a\]"
PS1="${ORIG}${TITLE}"
}
This works for me in Ubuntu 18.04
function title(){ if [[ -z "$ORIG" ]]; then ORIG="$PS1" fi TITLE="\[\e]2;$*\a\]" PS1="${ORIG}${TITLE}" }
I'm using Windows 10 with Hyper version 3.0.2 and THIS worked for me! Thanks.
Most helpful comment
TL;DR
function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }
source ~/.bash_profile
title NEW_TITLE
to change tab title