From 1da0453ff4f1eb2f51d23a479dc414e89e844094 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Mon, 4 Jul 2022 15:23:49 +0800 Subject: [PATCH] Lite-XL draft --- install/160-lite-xl.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 install/160-lite-xl.sh diff --git a/install/160-lite-xl.sh b/install/160-lite-xl.sh new file mode 100755 index 0000000..447f4e7 --- /dev/null +++ b/install/160-lite-xl.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT +# DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT +# DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT +# DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT +# DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT + +# https://github.com/lite-xl/lite-xl + +[ $1 ] && LITEXLVER="$1" || LITEXLVER="2.0.5" +echo +echo "===============================================" +echo "Installing lite-xl${LITEXLVER}..." +echo "===============================================" +echo + +wget "https://github.com/lite-xl/lite-xl/releases/download/v${LITEXLVER}/lite-xl-linux-x86_64.tar.gz" -O /tmp/lite-xl.tar.gz +sudo tar -xzf /tmp/lite-xl.tar.gz -C /tmp +mkdir -p $HOME/.local/bin && cp /tmp/lite-xl/bin/lite-xl $HOME/.local/bin +cp -r /tmp/lite-xl/share $HOME/.local +rm -rf /tmp/lite-xl* +echo -e 'export PATH="$PATH:$HOME/.local/bin"' >> $HOME/.bashrc +[ -f $HOME/.zshrc ] && echo -e 'export PATH="$PATH:$HOME/.local/bin"' >> $HOME/.zshrc +xdg-desktop-menu forceupdate + +### uninstall +# rm -f $HOME/.local/bin/lite-xl +# rm -rf $HOME/.local/share/icons/hicolor/scalable/apps/lite-xl.svg \ +# $HOME/.local/share/applications/org.lite_xl.lite_xl.desktop \ +# $HOME/.local/share/metainfo/org.lite_xl.lite_xl.appdata.xml \ +# $HOME/.local/share/lite-xl