* zsh as a file manager
@ 2006-10-06 17:01 y i y u s
2006-10-06 17:12 ` y i y u s
0 siblings, 1 reply; 2+ messages in thread
From: y i y u s @ 2006-10-06 17:01 UTC (permalink / raw)
To: zsh-users
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!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: zsh as a file manager
2006-10-06 17:01 zsh as a file manager y i y u s
@ 2006-10-06 17:12 ` y i y u s
0 siblings, 0 replies; 2+ messages in thread
From: y i y u s @ 2006-10-06 17:12 UTC (permalink / raw)
To: zsh-users
Ups!
Im sorry, but there was a mistake with fimg and fmus aliases, the
right ones are:
# 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)`"'
Regards,
--
- yiyus || JGL .
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-06 17:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-06 17:01 zsh as a file manager y i y u s
2006-10-06 17:12 ` y i y u s
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).