dotfiles/restorefiles.sh

48 lines
1.7 KiB
Bash
Raw Normal View History

2022-11-15 23:10:12 +05:00
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
2022-11-16 22:03:08 +05:00
###################################################################
read -p "Enable Nano syntax highlight? [Y/n]: " ENABLE_NANO
2022-11-19 01:05:36 +05:00
if [ "$ENABLE_NANO" = "Y" ] || [ "$ENABLE_NANO" = "y" ] || [ "$ENABLE_NANO" = "" ]
2022-11-16 22:03:08 +05:00
then
sudo pacman -S nano-syntax-highlighting
mkdir -p $HOME/.config/nano/
ln -s $PWD/config/nano/nanorc $HOME/.config/nano/nanorc
fi
###################################################################
###################################################################
read -p "Restore ~/.bashrc? [Y/n]: " ENABLE_BASHRC
2022-11-19 01:05:36 +05:00
if [ "$ENABLE_BASHRC" = "Y" ] || [ "$ENABLE_BASHRC" = "y" ] || [ "$ENABLE_NANO" = "" ]
2022-11-16 22:03:08 +05:00
then
2022-11-19 01:28:02 +05:00
sudo pacman -S neofetch
2022-11-19 01:23:53 +05:00
git clone --depth 1 https://github.com/bluz71/bash-seafly-prompt ~/.bash-seafly-prompt
source ~/.bash-seafly-prompt/command_prompt.bash
cd /tmp
git clone --recursive https://github.com/akinomyoga/ble.sh.git
make -C ble.sh install PREFIX=~/.local
cd -
2022-11-19 01:28:02 +05:00
mkdir $HOME/.cache; echo $PWD > $HOME/.cache/whereami
2022-11-19 01:32:27 +05:00
rm $HOME/.bashrc
2022-11-19 01:23:53 +05:00
ln -s $PWD/bashrc $HOME/.bashrc
2022-11-16 22:03:08 +05:00
fi
###################################################################
2022-12-14 21:21:55 +05:00
2022-12-14 21:19:33 +05:00
###################################################################
read -p "xsettingsd [Y/n]: " XSETTINGSD
2022-12-14 21:21:55 +05:00
if [ "$XSETTINGSD" = "Y" ] || [ "$XSETTINGSD" = "y" ] || [ "$XSETTINGSD" = "" ]
2022-12-14 21:19:33 +05:00
then
sudo pacman -S xsettingsd
mkdir -p $HOME/.config/xsettingsd/
ln -s $PWD/config/xsettingsd/xsettingsd.conf $HOME/.config/xsettingsd/xsettingsd.conf
fi
2023-01-09 20:19:02 +05:00
###################################################################
2023-01-09 20:22:06 +05:00
2023-01-09 20:19:02 +05:00
###################################################################
2023-01-09 20:22:06 +05:00
mkdir $HOME/.scripts $HOME/.shortcuts -p
2023-01-09 20:20:59 +05:00
ln -s ./scripts/* $HOME/.scripts/
2023-01-09 20:19:02 +05:00
###################################################################