What have you found for these years?

2009-12-10

lsd and lld

lsd: short hand for ls -d and strip non-hidden files.
sometimes i just want to list all hidden files,
since a plain ls lists all non-hidden files.
lsd + ls = ls -a

function lsd -d 'list all hidden files'
if test $argv
set argv $argv/.
else
set argv '.'
end
ls -d $argv*
end

lld: nothing special, same as above and replace ls with ll
not sure how to merge the two, but it just works...
function lld -d 'list all hidden files'
if test $argv
set argv $argv/.
else
set argv '.'
end
ll -d $argv*
end

see config.fish

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0