[zsh] Get the output redirection right for autoloads
This commit is contained in:
parent
1eb0f7ab8e
commit
0226d26f94
2 changed files with 5 additions and 4 deletions
2
zshenv
2
zshenv
|
@ -18,6 +18,6 @@ init_path
|
||||||
init_env
|
init_env
|
||||||
init_env_python
|
init_env_python
|
||||||
|
|
||||||
if autoload +X init_env_$SYS; then
|
if autoload +X init_env_$SYS &>-; then
|
||||||
init_env_$SYS
|
init_env_$SYS
|
||||||
fi
|
fi
|
||||||
|
|
7
zshrc
7
zshrc
|
@ -19,11 +19,12 @@ init_zsh_options
|
||||||
init_zsh_history
|
init_zsh_history
|
||||||
init_app_environments
|
init_app_environments
|
||||||
|
|
||||||
autoload +X init_rc_$SYS
|
if autoload +X init_rc_$SYS &>-; then
|
||||||
init_rc_$SYS
|
init_rc_$SYS
|
||||||
|
fi
|
||||||
|
|
||||||
# Configure ls with the system ls if it hasn't been done already.
|
# 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`
|
init_configure_ls `which ls`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue