Refresh ZSH session after dotfile execution, don't show welcome msg

This commit is contained in:
Alicia Sykes 2022-09-23 17:37:34 +01:00
parent 080a526601
commit ec71ab57e7
2 changed files with 4 additions and 1 deletions

View File

@ -264,6 +264,9 @@ function finishing_up () {
echo -e "\033[0;92m .--.\n |o_o |\n |:_/ |\n // \
\ \\ \n (| | ) \n /'\_ _/\`\\ \n \\___)=(___/\n"
# Refresh ZSH sesssion
SKIP_WELCOME=true || exec zsh
# Exit script with success code
echo -e "${CYAN_B}Press any key to exit.${RESET}\n"
read -t $PROMPT_TIMEOUT -n 1 -s

View File

@ -44,6 +44,6 @@ source ${zsh_dir}/helpers/misc-stuff.zsh
[[ ! -f ${zsh_dir}/.p10k.zsh ]] || source ${zsh_dir}/.p10k.zsh
# If not running in nested shell, then show welcome message :)
if [[ "${SHLVL}" -lt 2 ]]; then
if [[ "${SHLVL}" -lt 2 ]] && [[ -z "$SKIP_WELCOME" ]]; then
welcome
fi