mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
Handle zshrc when install
This commit is contained in:
parent
a5312ce0b0
commit
4d51713493
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue