core: Install bat/delta

This commit is contained in:
2020-08-28 15:53:01 +01:00
parent 0fd7983744
commit 049065ea25
5 changed files with 46 additions and 13 deletions

11
install_exa.bash Normal file
View File

@@ -0,0 +1,11 @@
EXA_VER=v0.9.0
install_exa() {
if [ "$(uname -s)" == 'Darwin' ]; then
EXA_PATH=exa-${EXA_VER}-x86_64-apple-darwin
elif [ "$(uname -s)" == 'Linux' ] ; then
EXA_PATH=exa-${EXA_VER}-x86_64-unknown-linux-gnu
fi
EXA_URL=https://github.com/ogham/exa/releases/download/${EXA_VER}/${EXA_PATH}.zip
echo "Installing exa $EXA_PATH"
((curl -L ${EXA_URL} | tar xzf - "${EXA_PATH}/exa") && mv ${EXA_PATH}/exa $BASE/bin/exa-${EXA_VER} && ln -sf $BASE/bin/exa-${EXA_VER} $BASE/bin/exa && rm -r ${EXA_PATH}) || exit 1
}