From: Simon Ruderich Date: Tue, 16 Sep 2008 15:36:00 +0000 (+0200) Subject: Added ls, la and ll functions for better directory listings. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=4bc13409c58702de4e6d90de9e45705cac20e3f6;p=config%2Fdotfiles.git Added ls, la and ll functions for better directory listings. --- diff --git a/zsh/rc b/zsh/rc index 821d8d9..18ffa0c 100644 --- a/zsh/rc +++ b/zsh/rc @@ -80,6 +80,20 @@ alias -g D='2>&1 | colordiff L' # Simplify calls to grep. alias -g G='| grep' +# Improved ls which displays the files in columns (-C), visualises directories, +# links and other special files (-F) and pages everything through less (L). +function ls() { + command ls -C -F $* L +} +# Helper function to list all files. +function la() { + ls -a $* +} +# Helper function to list all files in list format with access rights, etc. +function ll() { + la -l $* +} + # If a rc.local file exists load it, otherwise load a rc file for the current # hostname (first part before a dot) if it exists.