diff options
-rw-r--r-- | utils/desktop/lvim.desktop | 13 | ||||
-rwxr-xr-x | utils/installer/install.sh | 9 | ||||
-rwxr-xr-x | utils/installer/uninstall.sh | 3 |
3 files changed, 24 insertions, 1 deletions
diff --git a/utils/desktop/lvim.desktop b/utils/desktop/lvim.desktop new file mode 100644 index 00000000..f4a51b10 --- /dev/null +++ b/utils/desktop/lvim.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name=LunarVim +GenericName=Text Editor +Comment=An IDE layer for Neovim with sane defaults. Completely free and community driven. +TryExec=lvim +Exec=lvim %F +Terminal=false +Type=Application +Keywords=Text;editor; +Icon=nvim +Categories=Utility;TextEditor; +StartupNotify=false +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 3d7fcc33..5778fb3a 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -226,5 +226,14 @@ else # echo 'export PATH=$HOME/.config/lunarvim/utils/bin:$PATH' >>~/.bashrc fi +if [ "$(uname)" != "Darwin" ]; then + if [ -e "$HOME/.local/share/applications/lvim.desktop" ]; then + echo 'Desktop file already available' + else + mkdir -p "$HOME/.local/share/applications" + cp "$HOME/.local/share/lunarvim/lvim/utils/desktop/lvim.desktop" "$HOME/.local/share/applications/lvim.desktop" + fi +fi + echo "I recommend you also install and activate a font from here: https://github.com/ryanoasis/nerd-fonts" # echo 'export PATH=/home/$USER/.config/lunarvim/utils/bin:$PATH appending to zshrc/bashrc' diff --git a/utils/installer/uninstall.sh b/utils/installer/uninstall.sh index faa76c37..0615e219 100755 --- a/utils/installer/uninstall.sh +++ b/utils/installer/uninstall.sh @@ -1,4 +1,5 @@ #!/bin/sh -rm -rf .local/share/lunarvim +rm -rf ~/.local/share/lunarvim sudo rm /usr/local/bin/lvim +rm -rf ~/.local/share/applications/lvim.desktop |