Re: FVWM: Tab window switching more informative??

From: Cameron Simpson <cs_at_zip.com.au>
Date: Sat, 14 May 2005 18:40:15 +1000

On 14May2005 01:19, Yang Yang <yangyang_at_juggler.ucsd.edu> wrote:
| could you tell me how to obtain the command history local to a
| single xterm? ----- if I do "history", the results from all xterms are
| the same

Sounds like you're using bash. It shares history across all shells.
However, the command "history 1", when used by the function called from
$PROMPT_COMMAND, should contain the last command executed for _that_
shell. Which would suffice:

        atprompt()
        {
          ttylabel "$HOST $PWD <`history 1`>"
        }

Cheers,
-- 
Cameron Simpson <cs_at_zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
When I die, I want to go sleeping like my grandfather...
Not screaming like the passengers in his car.   - conrad_at_pico.qpsx.oz.au
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat May 14 2005 - 03:41:25 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST