From 4bc13409c58702de4e6d90de9e45705cac20e3f6 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 16 Sep 2008 17:36:00 +0200 Subject: [PATCH] Added ls, la and ll functions for better directory listings. --- zsh/rc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. -- 2.45.2