On 26 Nov 2001 04:07:59PM +0800, Rafael 'Dido' Sevilla ([EMAIL PROTECTED])
said:
> You know what Sacha? Every day you seem to remind me more and more of
> Hermione Granger in the Harry Potter books. :)
Awwwww. |)
Anyway, going back on topic...
William's discovered the joys of bindkey and has mapped ? to be
complete-word. He says it's easier than typing <tab> because your
hand doesn't have to move, and besides, it reminds him of Cisco.
Have I posted this snippet yet? I've gotten my rxvt to display the
current host and directory in the title bar of my rxvt; handy, really.
The tcsh manpage had an example for xterm, but I poked around the rxvt
manpage to make this lovely thing:
if ( $TERM == "rxvt" ) then
alias cwdcmd 'ls-F; echo -n "\033]2;$HOST|$cwd\007"'
else
alias cwdcmd 'ls-F'
endif
so every time I change directories, I get a neat ls-F (different from ls
-F - read the tcsh manpage), which updates my title bar if I'm in rxvt.
(ls-F is cool. set color to get it to act like ls -F --color. I wandered into the
/dev directory earlier today and was pleasantly surprised to see ls-F neatly
distinguish between block devices (#), character devices (%), and named pipes (|)...
plus it was about twice or thrice as fast as ls -F --color.)
I thought about updating my titlebar in postcmd, but after running a
shellscript I realized that that could be a little impractical. So I
have a small shell script in my ~/bin directory that updates the
titlebar manually, just in case I feel like being a little more
organized.
Oh, and then there's
alias helpcommand info
so that hitting M-h on the commandline will get me the info page of the
current word. Neat.
--
Sacha Chua <[EMAIL PROTECTED]> 3 BS CS geek =)
Ateneo Cervini-Eliazo Networks (ACENT) tel: 63(2) 426-6001 loc 5925
BOFH excuse #70: nesting roaches shorted out the ether cable
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]