diff --git a/zsh/plugins.zsh b/zsh/plugins.zsh index 09158bd..ab4c7db 100755 --- a/zsh/plugins.zsh +++ b/zsh/plugins.zsh @@ -1,9 +1,9 @@ #!/usr/bin/env zsh _plugin() { - _perf_timer_start "plugin $1" + [ -z "$DOTFILES_LOAD_SILENT" ] && _perf_timer_start "plugin $1" plugin "$@" - _perf_timer_stop "plugin $1" + [ -z "$DOTFILES_LOAD_SILENT" ] && _perf_timer_stop "plugin $1" } _plugin gitio 'denysdovhan/gitio-zsh' diff --git a/zsh/zshrc b/zsh/zshrc index 2c3ad04..fb8ebb1 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,5 +1,7 @@ #!/usr/bin/env zsh +DOTFILES_DISABLE_WELCOME=1 + # Get this file's current directory and source Dima's zshrc from there K_ZSH_DOTFILES="$( dirname "$( readlink -f "$0" )" )" source $K_ZSH_DOTFILES/../dmitmel-dotfiles/zsh/zshrc @@ -13,3 +15,7 @@ if [[ -d "$K_ZSH_DOTFILES/custom" ]]; then source "$script" done fi + +if [[ -z "$KDOTFILES_DISABLE_WELCOME" && -z "$POETRY_ACTIVE" ]]; then + welcome +fi