From e9b976f5f23bded8fd2fd83c09e499f674ff6d53 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 8 Sep 2021 09:43:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D1=80=D1=83=D0=B6=D0=B0=D0=B5=D0=BC=D1=8B=D1=85=20?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshrc | 53 +++++++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/.zshrc b/.zshrc index cd5bfb3..e5ef844 100644 --- a/.zshrc +++ b/.zshrc @@ -1,27 +1,32 @@ -[ -e $ZDOTDIR/env.start.zsh ] && source $ZDOTDIR/env.start.zsh +zmodload zsh/zprof -source $ZDOTDIR/env.zsh -[ -e $ZDOTDIR/env.user.zsh ] && source $ZDOTDIR/env.user.zsh - -source $ZDOTDIR/history.zsh -[ -e $ZDOTDIR/history.user.zsh ] && source $ZDOTDIR/history.user.zsh - -source $ZDOTDIR/options.zsh -[ -e $ZDOTDIR/options.user.zsh ] && source $ZDOTDIR/options.user.zsh - -source $ZDOTDIR/plugins.zsh -[ -e $ZDOTDIR/plugins.user.zsh ] && source $ZDOTDIR/plugins.user.zsh - -source $ZDOTDIR/agents.zsh -[ -e $ZDOTDIR/agents.user.zsh ] && source $ZDOTDIR/agents.user.zsh - -source $ZDOTDIR/prompt.zsh -[ -e $ZDOTDIR/prompt.user.zsh ] && source $ZDOTDIR/prompt.user.zsh - -source $ZDOTDIR/aliases.zsh -[ -e $ZDOTDIR/aliases.user.zsh ] && source $ZDOTDIR/aliases.user.zsh - -source $ZDOTDIR/compinit.zsh -[ -e $ZDOTDIR/compinit.user.zsh ] && source $ZDOTDIR/compinit.user.zsh +for S in \ + "$ZDOTDIR/env.start.zsh" \ + "$ZDOTDIR/env.zsh" \ + "$ZDOTDIR/env.user.zsh" \ + \ + "$ZDOTDIR/history.zsh" \ + "$ZDOTDIR/history.user.zsh" \ + \ + "$ZDOTDIR/options.zsh" \ + "$ZDOTDIR/options.user.zsh" \ + \ + "$ZDOTDIR/plugins.zsh" \ + "$ZDOTDIR/plugins.user.zsh" \ + \ + "$ZDOTDIR/agents.zsh" \ + "$ZDOTDIR/agents.user.zsh" \ + \ + "$ZDOTDIR/prompt.zsh" \ + "$ZDOTDIR/prompt.user.zsh" \ + \ + "$ZDOTDIR/aliases.zsh" \ + "$ZDOTDIR/aliases.user.zsh" \ + \ + "$ZDOTDIR/compinit.zsh" \ + "$ZDOTDIR/compinit.user.zsh" \ + ; + do [ -e "$S" ] && source "$S" +done true