dotfiles/restorefiles.sh

29 lines
1.0 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: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 -
ln -s $PWD/bashrc $HOME/.bashrc
2022-11-16 22:03:08 +05:00
fi
###################################################################