core: Install bat/delta
This commit is contained in:
11
install_exa.bash
Normal file
11
install_exa.bash
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user