Lite-XL draft
This commit is contained in:
parent
2a0fbc25c5
commit
1da0453ff4
32
install/160-lite-xl.sh
Executable file
32
install/160-lite-xl.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user