[scripts] fixed change-theme

This commit is contained in:
Afonso Franco 2024-07-20 14:26:22 +01:00
parent ca914b505e
commit 325d237863
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54

View file

@ -19,7 +19,7 @@ change_common(){
#Change alacritty theme #Change alacritty theme
sed -i '' -e "s|import = \[\"~/.config/alacritty/themes/.*\"\]|import = [\"~/.config/alacritty/themes/${alacritty_theme_name}.toml\"]|g" ~/.config/alacritty/alacritty.toml sed -i '' -e "s|import = \[\"~/.config/alacritty/themes/.*\"\]|import = [\"~/.config/alacritty/themes/${alacritty_theme_name}.toml\"]|g" ~/.config/alacritty/alacritty.toml
#Change zsh theme #Change zsh theme
sed -i '' -e "s|source \$HOME/.config/zsh/themes/.*zsh|source \$HOME/.config/zsh/themes/${zsh_theme_name}.zsh|g" ~/.zshrc sed -i '' -e "s|source \$ZDOTDIR/themes/.*zsh|source \$ZDOTDIR/themes/${zsh_theme_name}.zsh|g" ~/.zshrc
#Reload zsh sessions #Reload zsh sessions
pids=$(pgrep zsh) pids=$(pgrep zsh)
while IFS= read -r pid; do while IFS= read -r pid; do