From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17074 invoked from network); 19 Mar 2004 11:41:26 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Mar 2004 11:41:26 -0000 Received: (qmail 21075 invoked by alias); 19 Mar 2004 11:41:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7197 Received: (qmail 21049 invoked from network); 19 Mar 2004 11:41:12 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Mar 2004 11:41:12 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Mar 2004 11:41:11 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B4IND-0004KB-00 for ; Fri, 19 Mar 2004 12:41:11 +0100 Received: from isi-dialin-129-93.isionline-dialin.de ([195.158.129.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Mar 2004 12:41:11 +0100 Received: from thorsten by isi-dialin-129-93.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Mar 2004 12:41:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Wish for rprompt feature Date: Fri, 19 Mar 2004 12:41:06 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-93.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news Reading the User's Guide again[1] an idea came to my mind that would compensate for an inability of the current implementation of the "right prompt": I have my pwd ("%~") in my RPROMPT (as probably many people). When the path to the pwd is long (or I type a long command line) the rprompt disappears and makes place for my typing. This is a feature and generally a good thing but the problem is that the /whole/ rprompt disappears and not just the space I need. Just a "picture" for what I would like: current: thorsten@galactus% 12345678 /cygdrive/g/home/thorsten/ifolder/gentoo/conf/kernel thorsten@galactus% 123456789 desired: thorsten@galactus% 12345678 /cygdrive/g/home/thorsten/ifolder/gentoo/conf/kernel thorsten@galactus% 123456789 [...]/g/home/thorsten/ifolder/gentoo/conf/kernel thorsten@galactus% 1234567890 [...]/home/thorsten/ifolder/gentoo/conf/kernel Is that already possible? Or an easy to implement case for the wishlist? Thanks, Thorsten [1] "Prompts or parts of prompts, not just bits showing the directory, can be truncated to any length you choose. To truncate a path on the left, use something like ¡%10<...<%~¢. That works like this: the ¡%<<¢ is the basic form for truncation. The 10 after the ¡%¢ says that anything following is limited to 10 characters, and the characters ¡...¢ are to be displayed whenever the prompt would otherwise be longer than that (you can leave this empty). This applies to anything following, so now the %~ can¢t be longer than 10 characters, otherwise it will be truncated (to 7 characters, once the ¡...¢ has been printed)."