From bd49c00f9a18f413cd33767f5dfa793e9803c112 Mon Sep 17 00:00:00 2001 From: Moviuro Date: Sun, 12 Apr 2015 14:12:02 +0200 Subject: [PATCH] zshrc: don't overwrite {ls,grep}_options set in .zshrc.pre (cherry picked from commit 57b7364b7da842f486c85f7abae6ce457a23cc5c) --- etc/zsh/zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4e06cde..f66bebc 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -358,12 +358,12 @@ ZSH_NO_DEFAULT_LOCALE=${ZSH_NO_DEFAULT_LOCALE:-0} typeset -ga ls_options typeset -ga grep_options if ls --color=auto / >/dev/null 2>&1; then - ls_options=( --color=auto ) + ls_options+=( --color=auto ) elif ls -G / >/dev/null 2>&1; then - ls_options=( -G ) + ls_options+=( -G ) fi if grep --color=auto -q "a" <<< "a" >/dev/null 2>&1; then - grep_options=( --color=auto ) + grep_options+=( --color=auto ) fi # utility functions -- 2.1.4