Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh as a file manager
- X-seq: zsh-users 10801
- From: "y i y u s " <yiyu.jgl@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: zsh as a file manager
- Date: Fri, 6 Oct 2006 19:01:41 +0200
- 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=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author