From 0226d26f94d16e2253ed58867d5734f72aa03e72 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 20 May 2022 15:12:14 +0000 Subject: [PATCH] [zsh] Get the output redirection right for autoloads --- zshenv | 2 +- zshrc | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/zshenv b/zshenv index d7bc359..55a115a 100644 --- a/zshenv +++ b/zshenv @@ -18,6 +18,6 @@ init_path init_env init_env_python -if autoload +X init_env_$SYS; then +if autoload +X init_env_$SYS &>-; then init_env_$SYS fi diff --git a/zshrc b/zshrc index 395a4de..328b225 100644 --- a/zshrc +++ b/zshrc @@ -19,11 +19,12 @@ init_zsh_options init_zsh_history init_app_environments -autoload +X init_rc_$SYS -init_rc_$SYS +if autoload +X init_rc_$SYS &>-; then + init_rc_$SYS +fi # Configure ls with the system ls if it hasn't been done already. -if ! alias ls 2>&1 1>/dev/null; then +if ! alias ls &>-; then init_configure_ls `which ls` fi