32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
|
|
|
|
|
|
###################################################################
|
|
read -p "Enable Nano syntax highlight? [Y/n]: " ENABLE_NANO
|
|
if [ "$ENABLE_NANO" = "Y" ] || [ "$ENABLE_NANO" = "y" ] || [ "$ENABLE_NANO" = "" ]
|
|
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
|
|
if [ "$ENABLE_BASHRC" = "Y" ] || [ "$ENABLE_BASHRC" = "y" ] || [ "$ENABLE_NANO" = "" ]
|
|
then
|
|
sudo pacman -S neofetch
|
|
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 -
|
|
mkdir $HOME/.cache; echo $PWD > $HOME/.cache/whereami
|
|
rm $HOME/.bashrc
|
|
ln -s $PWD/bashrc $HOME/.bashrc
|
|
fi
|
|
###################################################################
|