Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6937511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:22:20+00:00 2026-05-27T12:22:20+00:00

I am not exactly a pro at BASH Scripting, but I can get by

  • 0

I am not exactly a pro at BASH Scripting, but I can get by with the basics. I use MRXVT with Cygwin on my windows box (MRXVT is an RXVT Terminal with tabs. RXVT is a Standard Cygwin terminal, but with enhanced features). I found a command to change the tab names for MRXVT:

echo -ne "\e]62;New tab title\a"

It works like a charm. I’m not, however, interested in A)Changing it manually or B)Changing it to a static String

I use a lot of SSH. I’d like the tab title to be username@host[current directory] at any given time.

I’m not sure if I’m supposed to use a trap for this. Frankly, I don’t understand how traps work. I guess I could create an ssh alias that pulls the first argument of the ssh command and sets the tab title to that…This would be sufficient, but not preferred.

Do you guys have any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:22:21+00:00Added an answer on May 27, 2026 at 12:22 pm

    Found an answer. added

    trap 'echo -ne "\e]62;mrxvt: $USER@${HOSTNAME}\007"' DEBUG

    to the very end of my .bashrc. I decided I didn’t like having the path in my tabs (or titlebar for that matter). Also, I had to add “mrxvt: ” to the beginning of the string because of an AHK script that I wrote; it wouldn’t work properly otherwise. The full answer to this is:

    trap 'echo -ne "\e]62;$USER@${HOSTNAME}[${pwd}]\007"' DEBUG

    Again, just add that line to the end of your .bashrc, and you’re good to go.

    Hope this helps somebody else 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not exactly about programming, but I need help with this. I'm running a development
Not exactly sure how to look this up, but I'm not finding the solution
This is not exactly a programming question, but it's highly related. We are writing
I have a few tables that have similar fields but not exactly the same.
sorry, it's not exactly a programming question, but I am currently in a research
Similar to this thread, but not exactly: How To Cache Information In A Threadsafe
Not exactly a programming question, but close. I'll try my luck anyway. The keyboard
The title is not exactly meaningful, but I am not share what else to
My question is not exactly about coding, and I'm not sure if I can
This is not exactly a straight-out question because I have just solved it, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.