dotfiles/scripts/utils.sh

26 lines
727 B
Bash
Raw Normal View History

2021-07-27 18:59:49 +00:00
#!/bin/bash
function install_exa () {
EXA_VERSION="0.10.1"
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
rm exa-linux-x86_64-v$EXA_VERSION.zip
rm -rf exa
}
function install_bat () {
BAT_VERSION="0.18.2"
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
rm bat_${BAT_VERSION}_amd64.deb
}
if [ "$1" == "install" ]; then
install_exa
2021-07-27 19:12:03 +00:00
install_bat
2021-07-27 18:59:49 +00:00
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall
else
echo "please specify args with install or uninstall"
fi