From 0c8578c5d516bd031e2ea8148db8e6fe3c37f326 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 12 May 2008 15:37:30 +0100 Subject: [PATCH 1/1] use array for ls options --- .zsh/zshrc/30_aliases | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index 42c5624..5aeb0a7 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -23,12 +23,12 @@ alias curl='noglob curl' alias apt-cache='noglob apt-cache' alias locate='noglob locate' -_LS_OPTS='-bCF --color=auto' +_ls_opts=(-bCF --color=auto) ls --group-directories-first >/dev/null 2>&1 \ - && _LS_OPTS="$_LS_OPTS --group-directories-first" + && _ls_opts+=--group-directories-first # I prefer POSIX collation for ls -alias ls="LC_COLLATE=POSIX ls $_LS_OPTS" -unset _LS_OPTS +alias ls="LC_COLLATE=POSIX ls $_ls_opts" +unset _ls_opts alias ll='ls -l' alias l=ll -- 2.39.5