From b78f11c674d58383a4be2188f53a9f6a5d050320 Mon Sep 17 00:00:00 2001 From: Moviuro Date: Thu, 14 Jan 2016 21:56:50 +0100 Subject: [PATCH] zshrc: Enable ls(1)'s natural sorting if available --- etc/zsh/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c021c87..451b5dd 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -436,6 +436,12 @@ if ls --color=auto / >/dev/null 2>&1; then elif ls -G / >/dev/null 2>&1; then ls_options+=( -G ) fi + +# Natural sorting order on GNU ls(1) +if ls -v / >/dev/null 2>&1; then + ls_options+=( -v ) +fi + if grep --color=auto -q "a" <<< "a" >/dev/null 2>&1; then grep_options+=( --color=auto ) fi -- 2.1.4