2016-06-24

The LS command to end all LS commands

This can go in your ~/.bashrc file


alias lls="
  LC_COLLATE=C \
  ls \
    --color=always \
    --almost-all \
    --no-group \
    --file-type \
    --group-directories-first \
    -g \
    -o \
    --time-style='+%Y-%m-%d %H:%M:%S' | \
  awk \
    '{print \$3\"\t\"\$4\" \"\$5\"\t\"\$6}' | \
  less \
    --RAW-CONTROL-CHARS \
    --quit-at-eof \
    --quit-if-one-screen \
    --no-init
"