mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 18:20:13 +01:00
optimized zsh.sh and add pokemon colorscripts
This commit is contained in:
parent
f71a453210
commit
c68f78b58c
@ -13,6 +13,11 @@ plugins=(
|
|||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
|
||||||
|
# Display Pokemon-colorscripts
|
||||||
|
# Project page: https://gitlab.com/phoneybadger/pokemon-colorscripts#on-other-distros-and-macos
|
||||||
|
pokemon-colorscripts --no-title -r 1,3,6
|
||||||
|
|
||||||
# Import colorscheme from 'wal' asynchronously
|
# Import colorscheme from 'wal' asynchronously
|
||||||
# & # Run the process in the background.
|
# & # Run the process in the background.
|
||||||
# ( ) # Hide shell job control messages.
|
# ( ) # Hide shell job control messages.
|
||||||
|
|||||||
@ -44,35 +44,46 @@ install_package() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# zsh and oh-my-zsh
|
# Check if the oh-my-zsh directory exists
|
||||||
printf "${WARN} #### IF YOU HAVE ALREADY ZSH AND OH MY ZSH, YOU SHOULD CHOOSE NO HERE #########\n"
|
if [ -d "$HOME/.oh-my-zsh" ]; then
|
||||||
printf "${WARN} ### ------------------------------------------------------------------------------------------------------------------------###\n"
|
printf "${NOTE} Oh My Zsh found. Creating a backup before uninstalling...${RESET}\n"
|
||||||
printf "${NOTE} ## CHECK OUT README FOR ADDITIONAL STEPS REQUIRED ONCE ZSH AND OH-MY-ZSH INSTALLED ##\n"
|
# Perform backup using cp -r and create a backup directory with -backup suffix
|
||||||
printf "\n"
|
mv "$HOME/.oh-my-zsh" "$HOME/.oh-my-zsh-backup"
|
||||||
printf "\n"
|
mv "$HOME/.zshrc" "$HOME/.zshrc-backup"
|
||||||
read -rp "${CAT} OPTIONAL - Would you like to install zsh and oh-my-zsh and use as default shell? (y/n) " zsh
|
|
||||||
echo
|
|
||||||
|
|
||||||
if [[ $zsh =~ ^[Yy]$ ]]; then
|
printf "${NOTE} Backup created....${RESET}\n"
|
||||||
for ZSH in zsh ; do
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Installing zsh packages
|
||||||
|
printf "${NOTE} Installing core zsh packages...${RESET}\n"
|
||||||
|
for ZSH in zsh; do
|
||||||
install_package "$ZSH" 2>&1 | tee -a "$LOG"
|
install_package "$ZSH" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\e[1A\e[K${ERROR} - $ZSH install had failed, please check the install.log"
|
echo -e "\e[1A\e[K${ERROR} - $ZSH install had failed, please check the install.log"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Oh-my-zsh plus zsh-autosuggestions and zsh-syntax-highlighting
|
# Install Oh My Zsh, plugins, and set zsh as default shell
|
||||||
printf "${NOTE} Installing oh-my-zsh and plugins.\n"
|
if command -v zsh >/dev/null; then
|
||||||
|
printf "${NOTE} Installing Oh My Zsh and plugins...\n"
|
||||||
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
|
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && \
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && \
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting || true
|
||||||
cp -r 'assets/.zshrc' ~/
|
cp -r 'assets/.zshrc' ~/
|
||||||
cp -r 'assets/.zprofile' ~/
|
cp -r 'assets/.zprofile' ~/
|
||||||
|
|
||||||
printf "${NOTE} changing default shell to zsh.....\n"
|
printf "${NOTE} Changing default shell to zsh...\n"
|
||||||
chsh -s $(which zsh)
|
chsh -s $(which zsh) || true 2>&1 | tee -a "$LOG"
|
||||||
else
|
|
||||||
printf "${NOTE} ZSH wont be installed.\n"
|
|
||||||
fi
|
fi
|
||||||
|
printf "\n\n\n\n"
|
||||||
|
|
||||||
|
#Pokemon Colorscripts
|
||||||
|
printf "${NOTE} Installing Pokemon-Colorscipts.\n"
|
||||||
|
git clone https://gitlab.com/phoneybadger/pokemon-colorscripts.git
|
||||||
|
cd pokemon-colorscripts
|
||||||
|
sudo ./install.sh
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|||||||
@ -143,7 +143,7 @@ ask_yes_no "-Install and configure SDDM log-in Manager?" sddm
|
|||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Install XDG-DESKTOP-PORTAL-HYPRLAND? (For proper Screen Share ie OBS)" xdph
|
ask_yes_no "-Install XDG-DESKTOP-PORTAL-HYPRLAND? (For proper Screen Share ie OBS)" xdph
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Do you want to install zsh and oh-my-zsh?" zsh
|
ask_yes_no "-Install zsh, oh-my-zsh & pokemon-colorscripts?" zsh
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Install swaylock-effects? (recommended - for screen locks)" swaylock
|
ask_yes_no "-Install swaylock-effects? (recommended - for screen locks)" swaylock
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user