Ok -- I have to say, the behavior of ~/.config/fish/functions just rocks.  I
have this as my function for ls . . . and it overwrites itself after the
first call to a simpler function:

#
# Sorted ls (by size)
#

# Set the proper ls based on the OS
set OS (uname)
switch $OS
   case Linux
        function lsort --description "List files sorted by size"
            command ls --color=auto --sort=size -lr $argv
        end
   case Darwin
        function lsort --description "List files sorted by size"
            command ls -lSGr $argv
        end
end


Way more graceful than using a global config file!  I really like that!
Also easily extensible.  Much better than my previous config file jungle.
Working on my editors and such now.  This is blowing away aliases!
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to