Update install.sh
This commit is contained in:
23
install.sh
23
install.sh
@@ -1,10 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Creating .bashrc backup"
|
||||
steps="10"
|
||||
echo "[1/${steps}] Creating .bashrc backup"
|
||||
cp ~/.bashrc ~/.bashrc_backup
|
||||
|
||||
|
||||
echo "Adding aliases and zoxide to bashrc"
|
||||
echo "[2/${steps}] Adding aliases and zoxide to bashrc"
|
||||
echo "alias ls='lsd -a --tree --depth 1'" >> ~./bashrc
|
||||
echo "alias cat='batcat'" >> ~./bashrc
|
||||
echo "alias up='docker-compose up -d'" >> ~./bashrc
|
||||
@@ -15,14 +16,22 @@ echo "alias cd='z' " >> ~./bashrc
|
||||
echo "alias ff='fastfetch'" >> ~./bashrc
|
||||
|
||||
|
||||
echo "Creating Kitty config folders"
|
||||
echo "[3/${steps}] Creating Kitty config folders"
|
||||
mkdir -p ~/.config/kitty
|
||||
|
||||
if [ -e ~/.config/kitty/kitty.conf ]
|
||||
then
|
||||
echo "Kitty config file exists, creating backup"
|
||||
echo "[4/${steps}] kitty.conf exists, creating backup"
|
||||
cp ~/.config/kitty/kitty_backup.conf
|
||||
|
||||
else
|
||||
|
||||
fi
|
||||
echo "[4/${steps}] Downloading Kitty config"
|
||||
curl http://192.168.0.187:3000/zoli/linux-configs/raw/branch/main/kitty.conf -o ~/.config/kitty/kitty.conf
|
||||
|
||||
|
||||
if [ -e ~/.config/kitty/theme.conf ]
|
||||
then
|
||||
echo "[4/${steps}] Kitty theme.conf file exists, creating backup"
|
||||
cp ~/.config/kitty/theme_backup.conf
|
||||
fi
|
||||
echo "[4/${steps}] Downloading Kitty config"
|
||||
curl http://192.168.0.187:3000/zoli/linux-configs/raw/branch/main/theme.conf -o ~/.config/kitty/theme.conf
|
||||
|
||||
Reference in New Issue
Block a user