From: martin f. krafft Date: Mon, 12 May 2008 14:37:30 +0000 (+0100) Subject: use array for ls options X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/0c8578c5d516bd031e2ea8148db8e6fe3c37f326?ds=inline;pf=etc use array for ls options --- 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