On Sat, Dec 22, 2012 at 02:15:29AM +0800, Cheer Xiao wrote:
> The the availability of latest history item before it is executed is
> crucial to the filename saving part of a fasd-like tool. Assuming a
> preexec event implemented, it will look like:
> 
> function parse_and_save -e preexec
>     eval set args (echo $history[1] | tr \;\n '  ')
>     for a in $args
>         if test -f $a
>             save (readlink -f $a)
>         end
>     end
> end

does it has to come from the history or could the commandline be made
available through other ways? 

greetings, martin.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
services:   debugging, programming, training, linux sysadmin, web development
--
pike programmer      working in china                 societyserver.(org|net)
foresight developer  community.gotpike.org                 foresightlinux.org
unix sysadmin        (open-steam|www.caudium).org                  realss.com
Martin Bähr          http://societyserver.org/mbaehr/      

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to