diff --git a/install.sh b/install.sh index f818ca8..be5b622 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/zsh/.zshrc b/zsh/.zshrc index a2d33d1..a38d2db 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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