Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

bash prompt, but for a terminal title

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
woolsherpahat
Guru
Guru
User avatar
Posts: 347
Joined: Tue Mar 09, 2004 4:27 am

bash prompt, but for a terminal title

  • Quote

Post by woolsherpahat » Wed Jan 12, 2005 4:49 am

You know how your bash prompt can do all kinds of cool things like show which directory you're currently in and what user's logged in? I was wondering if I could do the same for my urxvt terminal title. I figure all you'd need to do is set the terminal title agruement to a series of variables like, '$user@$host:@dir -- @current program', so it'd look like this.

loki@iBook:/home/loki -- ssh@router

I think you can do this but I just have no idea where to look first.
The Real OTW
"Blue skies and high fives"
Top
papal_authority
Veteran
Veteran
User avatar
Posts: 1823
Joined: Wed Mar 31, 2004 4:07 am
Location: Canada

  • Quote

Post by papal_authority » Wed Jan 12, 2005 5:24 am

Something like this maybe?

Code: Select all

/usr/bin/perl -e 'print "\033]0;YOUR MESSAGE HERE\007";'
The free market gave me gonorrhea.
Top
woolsherpahat
Guru
Guru
User avatar
Posts: 347
Joined: Tue Mar 09, 2004 4:27 am

  • Quote

Post by woolsherpahat » Thu Jan 13, 2005 5:32 am

Sort of. I was hoping I could set the terminal title to be a variable, much like a bash prompt. That way the terminal title could reflect which command I was currently running and which computer I was logged in to.
The Real OTW
"Blue skies and high fives"
Top
KozmoNaut
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 09, 2002 4:06 pm
Location: Denmark

  • Quote

Post by KozmoNaut » Wed Jul 05, 2006 7:57 am

I know I'm digging up an old thread, but I would absolutely love to have this as well...

Right now if I'm using screen and press CTRL+A" I get a list of my currently running shells withing screen. Unfortunately, they all just say "bash". Is it possible to have the currently running command placed there, and in the title of my term in X as well?
War. War never changes.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic