zsh-users
 help / color / mirror / code / Atom feed
From: "y i y u s " <yiyu.jgl@gmail.com>
To: zsh-users@sunsite.dk
Subject: zsh as a file manager
Date: Fri, 6 Oct 2006 19:01:41 +0200	[thread overview]
Message-ID: <a81fe9be0610061001rba7e0eeg8362737ca8eeffd9@mail.gmail.com> (raw)

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!


             reply	other threads:[~2006-10-06 17:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-06 17:01 y i y u s  [this message]
2006-10-06 17:12 ` y i y u s 

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a81fe9be0610061001rba7e0eeg8362737ca8eeffd9@mail.gmail.com \
    --to=yiyu.jgl@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).