2021-08-15 15:51:24 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-07-27 18:59:49 +00:00
|
|
|
|
|
|
|
function install_exa () {
|
|
|
|
EXA_VERSION="0.10.1"
|
2021-08-15 15:51:24 +00:00
|
|
|
cd ~
|
2021-07-27 18:59:49 +00:00
|
|
|
wget https://github.com/ogham/exa/releases/download/v$EXA_VERSION/exa-linux-x86_64-v$EXA_VERSION.zip
|
|
|
|
unzip exa-linux-x86_64-v$EXA_VERSION.zip -d exa
|
|
|
|
sudo mv exa/bin/exa /usr/local/bin/exa
|
2021-08-15 15:51:24 +00:00
|
|
|
sudo rm exa-linux-x86_64-v$EXA_VERSION.zip
|
|
|
|
sudo rm -rf exa
|
2021-07-27 18:59:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function install_bat () {
|
|
|
|
BAT_VERSION="0.18.2"
|
2021-08-15 15:51:24 +00:00
|
|
|
cd ~
|
2021-07-27 18:59:49 +00:00
|
|
|
wget https://github.com/sharkdp/bat/releases/download/v${BAT_VERSION}/bat_${BAT_VERSION}_amd64.deb
|
|
|
|
sudo dpkg -i bat_0.18.2_amd64.deb
|
2021-08-15 15:51:24 +00:00
|
|
|
sudo rm bat_${BAT_VERSION}_amd64.deb
|
|
|
|
}
|
|
|
|
|
|
|
|
function install_curlie () {
|
|
|
|
CURLIE_VERSION="1.6.0"
|
|
|
|
cd ~
|
|
|
|
wget https://github.com/rs/curlie/releases/download/v${CURLIE_VERSION}/curlie_${CURLIE_VERSION}_linux_amd64.tar.gz
|
|
|
|
sudo tar -zxvf curlie_${CURLIE_VERSION}_linux_amd64.tar.gz curlie
|
|
|
|
sudo mv curlie /usr/local/bin/
|
|
|
|
sudo rm curlie_${CURLIE_VERSION}_linux_amd64.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
function install_neofetch () {
|
|
|
|
NEOFETCH_VERSION="7.1.0"
|
|
|
|
cd ~
|
|
|
|
wget https://github.com/dylanaraps/neofetch/archive/refs/tags/$NEOFETCH_VERSION.tar.gz
|
|
|
|
sudo tar -zxvf $NEOFETCH_VERSION.tar.gz
|
|
|
|
cd neofetch-$NEOFETCH_VERSION
|
|
|
|
sudo make install
|
|
|
|
cd ~
|
|
|
|
sudo rm -rf $HOME/.config/neofetch
|
|
|
|
sudo mkdir $HOME/.config/neofetch
|
|
|
|
sudo ln -s ${DOTFILES_PATH}/neofetch/config.conf $HOME/.config/neofetch/config.conf
|
|
|
|
sudo rm $NEOFETCH_VERSION.tar.gz
|
|
|
|
sudo rm -rf neofetch-$NEOFETCH_VERSION
|
2021-07-27 18:59:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ "$1" == "install" ]; then
|
2021-07-28 05:35:47 +00:00
|
|
|
if [ "$2" == "bat" ]; then
|
|
|
|
install_bat
|
|
|
|
elif [ "$2" == "exa" ]; then
|
|
|
|
install_exa
|
2021-08-15 15:51:24 +00:00
|
|
|
elif [ "$2" == "curlie" ]; then
|
|
|
|
install_curlie
|
|
|
|
elif [ "$2" == "neofetch" ]; then
|
|
|
|
install_neofetch
|
2021-07-28 05:35:47 +00:00
|
|
|
else
|
|
|
|
install_exa
|
|
|
|
install_bat
|
2021-08-15 15:51:24 +00:00
|
|
|
install_curlie
|
|
|
|
install_neofetch
|
2021-07-28 05:35:47 +00:00
|
|
|
fi
|
2021-07-27 18:59:49 +00:00
|
|
|
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
|
|
|
|
uninstall
|
|
|
|
else
|
|
|
|
echo "please specify args with install or uninstall"
|
2021-08-15 15:51:24 +00:00
|
|
|
fi
|