X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=bat%2Finstall.sh;fp=bat%2Finstall.sh;h=b9a60679190d21a840151057d820d5c8fa53ad4b;hb=da8e2a58641786de373d32543a5296eb1b922fbf;hp=0000000000000000000000000000000000000000;hpb=1fe9a457c8ed0a2ac31856454a8e2aa4dfd86cff;p=webi-installers%2F.git diff --git a/bat/install.sh b/bat/install.sh new file mode 100644 index 0000000..b9a6067 --- /dev/null +++ b/bat/install.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +{ + set -e + set -u + + ############### + # Install bat # + ############### + + WEBI_SINGLE=true + + pkg_get_current_version() { + # 'bat --version' has output in this format: + # bat 0.15.4 + # This trims it down to just the version number: + # 0.15.4 + echo $(bat --version 2>/dev/null | head -n 1 | cut -d' ' -f 2) + } + + pkg_install() { + # $HOME/.local/xbin + mkdir -p "$pkg_src_bin" + + # mv ./bat-*/bat "$HOME/.local/xbin/bat-v0.15.4" + mv ./bat-*/bat "$pkg_src_cmd" + + # chmod a+x "$HOME/.local/xbin/rg-v11.1.0" + chmod a+x "$pkg_src_cmd" + } +}