diff --git a/.zshrc b/.config/zshrc.d/dots-hyprland.zsh similarity index 100% rename from .zshrc rename to .config/zshrc.d/dots-hyprland.zsh diff --git a/install.sh b/install.sh index 287a2b8fb..e7775cf9d 100755 --- a/install.sh +++ b/install.sh @@ -197,6 +197,9 @@ v rsync -av ".local/bin/" "$HOME/.local/bin/" # Prevent hyprland from not fully loaded sleep 1 try hyprctl reload + +grep -q 'source ~/.config/zshrc.d/dots-hyprland.zsh' .zshrc || existed_zsh_conf=n + ##################################################################################### printf "\e[36m[$0]: Finished. See the \"Import Manually\" folder and grab anything you need.\e[97m\n" printf "\e[36mPress \e[30m\e[46m Ctrl+Super+T \e[0m\e[36m to select a wallpaper\e[97m\n" @@ -211,3 +214,9 @@ case $existed_hypr_conf in printf "\e[33mPlease use \"~/.config/hypr/hyprland.conf.new\" as a reference for a proper format.\e[97m\n" printf "\e[33mIf this is your first time installation, you must overwrite \"~/.config/hypr/hyprland.conf\" with \"~/.config/hypr/hyprland.conf.new\".\e[97m\n" ;;esac + +case $existed_zsh_conf in + n) printf "\n\e[36m[$0]: \"~/.zshrc\" seems not sourcing \"~/.config/zshrc.d/dots-hyprland.zsh\".\e[97m\n" + printf "\e[36mIt is optional, but you may put this line into your \"~/.zshrc\" to support colorscheme for ZSH:\e[97m\n" + printf "\e[36m source ~/.config/zshrc.d/dots-hyprland.zsh\e[97m\n" +;;esac