Fixed install.sh
This commit is contained in:
+3
-4
@@ -46,12 +46,10 @@ fi
|
|||||||
[[ "${plugins[*]} " =~ "zsh-autosuggestions " ]] || git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
[[ "${plugins[*]} " =~ "zsh-autosuggestions " ]] || git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||||
[[ "${plugins[*]} " =~ "zsh-syntax-highlighting " ]] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
[[ "${plugins[*]} " =~ "zsh-syntax-highlighting " ]] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||||
|
|
||||||
# Make backup
|
# Make Backup
|
||||||
echo "Backing up the current configs. All the backup files will be available at ~/.cozy.bak"
|
|
||||||
mkdir -p ~/.cozy.bak
|
|
||||||
|
|
||||||
for folder in *; do
|
for folder in *; do
|
||||||
if [[ -d "$folder" && ! "$folder" =~ ^\. ]]; then
|
if [[ -d "$folder" && "$folder" != ".git" ]]; then
|
||||||
if [ -d "$HOME/$folder" ]; then
|
if [ -d "$HOME/$folder" ]; then
|
||||||
echo "Backing up ~/$folder"
|
echo "Backing up ~/$folder"
|
||||||
cp -r "$HOME/$folder" ~/.cozy.bak
|
cp -r "$HOME/$folder" ~/.cozy.bak
|
||||||
@@ -67,6 +65,7 @@ done
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check if SDDM is installed and install if not
|
# Check if SDDM is installed and install if not
|
||||||
if pacman -Qs sddm > /dev/null; then
|
if pacman -Qs sddm > /dev/null; then
|
||||||
echo "SDDM is already installed"
|
echo "SDDM is already installed"
|
||||||
|
|||||||
Reference in New Issue
Block a user