From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10096 invoked from network); 6 Oct 2006 17:02:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Oct 2006 17:02:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 48596 invoked from network); 6 Oct 2006 17:02:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 17:02:01 -0000 Received: (qmail 23978 invoked by alias); 6 Oct 2006 17:01:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10801 Received: (qmail 23968 invoked from network); 6 Oct 2006 17:01:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Oct 2006 17:01:47 -0000 Received: (qmail 47103 invoked from network); 6 Oct 2006 17:01:47 -0000 Received: from nz-out-0102.google.com (64.233.162.193) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 17:01:43 -0000 Received: by nz-out-0102.google.com with SMTP id j2so298511nzf for ; Fri, 06 Oct 2006 10:01:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EbOMgXwitbnu5lj66+vDdDH2gqXdzLhQxLLjDNYHu3sEw4oc277h8h34+YyVVbGpjHtFOeXTLNikB2LBfhltK5cSWFX6vhd0J5nqY8C+8zvjw3F4Z2IAnVgywvBzP8Rlgwd8qkJCK6gEvcL5l/44svzX6kS4Ay/suwHkVH2JNIw= Received: by 10.65.119.14 with SMTP id w14mr5080453qbm; Fri, 06 Oct 2006 10:01:41 -0700 (PDT) Received: by 10.65.239.20 with HTTP; Fri, 6 Oct 2006 10:01:41 -0700 (PDT) Message-ID: Date: Fri, 6 Oct 2006 19:01:41 +0200 From: "y i y u s " To: zsh-users@sunsite.dk Subject: zsh as a file manager MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I sent some comments to Peter Stephenson about his article in http://www.bash2zsh.com/essays/essay1_file_manager.html and he suggested me to send a mail to the list, so here it is: The "problem" I had when I used zsh as my main file manager was the constant tipying of ls after I realized an operation, then I modified my precmd command to do an ls. I have several aliases and a couple of variables to control it. I also tried with the ls in another window, ala viewglob (in X I used another xterm, else with splitvt or screen), but I find better the current behaviour. Probably an experienced user can find a better way to achieve this, and I would really like to hear what you have to say. This is an extract from my .zshrc: function precmd { if [ $FMMODE = true ]; then echo -n '\n::: ' pwd echo $FMCMD fi } # files mode alias fm='export FMMODE="true" FMCMD="`ls`"' # files list alias flist='export FMMODE="true" FMCMD="`ls -ll`"' # files images alias fimg='export FMMODE="true" FMCMD="`ls -d */|sed 's/\///g'; echo ; ls *.(png|jpg|jpeg|bmp|xmp|xcf|tif|tiff)`"' # files music alias fmus='export FMMODE="true" FMCMD="`ls -d */|sed 's/\///g'; echo ; ls *.(mp3|ogg)`"' # files off alias foff='export FMMODE="false"' I hope you find this useful, and I am wayting for your comments. Regards, -- - yiyus || JGL . PS: I just subscribed to this ml and I want to say that zsh is GREAAAAT!