8 comments on “Bash : fancy prompt and improvements

  1. Tres interessant ces alias, notamment l’alias ducks.

    Pour les scan de fichiers du repertoire courant j’utilise cet alias, moins poussez que le ducks mais assez utile :
    alias lh=’ls -sShr1’

  2. I found this ducks alis a few years ago on a website. Actually, I don’t it much. I even not sure that it does the trick right.

  3. “imp?ovments”?
    My english writing skills sux, but a spelling error in the title is too much =P

  4. Hi,
    I improved your ducks alias a little bit, so that it handles filenames with spaces correctly. :)

    alias ducks=’find . -maxdepth 1 -mindepth 1 -print0 | xargs -0 -n1 du -ks | sort -rn | head -16 | cut -f2 | xargs -i du -hs {}’

  5. Grr, what’s wrong with quotes in the comments?

    [code]
    alias ducks=’find . -maxdepth 1 -mindepth 1 -print0 | xargs -0 -n1 du -ks | sort -rn | head -16 | cut -f2 | xargs -i du -hs {}’
    [/code]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: