enhanced installation process
This commit is contained in:
parent
a63efc46f0
commit
5f8aee7fc7
|
@ -1,6 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
installdir="$HOME/.local/bin"
|
installdir="$HOME/.local/bin"
|
||||||
|
applications_dir="$HOME/.local/share/applications"
|
||||||
|
icon_dir="$HOME/.local/share/icons"
|
||||||
|
orig_dir=$( pwd )
|
||||||
|
|
||||||
echo "install directory is $installdir"
|
echo "install directory is $installdir"
|
||||||
|
|
||||||
if [ ! -d $installdir ]; then
|
if [ ! -d $installdir ]; then
|
||||||
|
@ -15,6 +19,21 @@ wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage ||
|
||||||
echo "done."
|
echo "done."
|
||||||
chmod +x nvim.appimage
|
chmod +x nvim.appimage
|
||||||
|
|
||||||
|
echo "Setting up nvim for GNOME."
|
||||||
|
echo "This part is optional since it might fail."
|
||||||
|
cd $orig_dir
|
||||||
|
echo "copying icon..."
|
||||||
|
cp nvim.svg $icon_dir
|
||||||
|
echo "copying .desktop..."
|
||||||
|
cp nvim.desktop $applications_dir
|
||||||
|
|
||||||
|
echo "You might have to update $applications_dir/nvim.desktop."
|
||||||
|
echo "Probably because your user name is different."
|
||||||
|
echo "Also you should set nvim as the handler for all the mimetypes:"
|
||||||
|
echo " xdg-mime default nvim.desktop 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++ text/x-python"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
|
||||||
echo "The neovim appimage has been downloaded into $installdir."
|
echo "The neovim appimage has been downloaded into $installdir."
|
||||||
echo "It has been marked as executable, you can now run $installdir/nvim.appimage."
|
echo "It has been marked as executable, you can now run $installdir/nvim.appimage."
|
||||||
echo "You should add an alias into your shrc:"
|
echo "You should add an alias into your shrc:"
|
81
install/nvim.desktop
Executable file
81
install/nvim.desktop
Executable file
|
@ -0,0 +1,81 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Neovim
|
||||||
|
GenericName=Text Editor
|
||||||
|
GenericName[de]=Texteditor
|
||||||
|
Comment=Edit text files
|
||||||
|
Comment[af]=Redigeer tekslêers
|
||||||
|
Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ
|
||||||
|
Comment[ar]=حرّر ملفات نصية
|
||||||
|
Comment[az]=Mətn fayllarını redaktə edin
|
||||||
|
Comment[be]=Рэдагаваньне тэкставых файлаў
|
||||||
|
Comment[bg]=Редактиране на текстови файлове
|
||||||
|
Comment[bn]=টেক্স্ট ফাইল এডিট করুন
|
||||||
|
Comment[bs]=Izmijeni tekstualne datoteke
|
||||||
|
Comment[ca]=Edita fitxers de text
|
||||||
|
Comment[cs]=Úprava textových souborů
|
||||||
|
Comment[cy]=Golygu ffeiliau testun
|
||||||
|
Comment[da]=Redigér tekstfiler
|
||||||
|
Comment[de]=Textdateien bearbeiten
|
||||||
|
Comment[el]=Επεξεργασία αρχείων κειμένου
|
||||||
|
Comment[en_CA]=Edit text files
|
||||||
|
Comment[en_GB]=Edit text files
|
||||||
|
Comment[es]=Edita archivos de texto
|
||||||
|
Comment[et]=Redigeeri tekstifaile
|
||||||
|
Comment[eu]=Editatu testu-fitxategiak
|
||||||
|
Comment[fa]=ویرایش پروندههای متنی
|
||||||
|
Comment[fi]=Muokkaa tekstitiedostoja
|
||||||
|
Comment[fr]=Édite des fichiers texte
|
||||||
|
Comment[ga]=Eagar comhad Téacs
|
||||||
|
Comment[gu]=લખાણ ફાઇલોમાં ફેરફાર કરો
|
||||||
|
Comment[he]=ערוך קבצי טקסט
|
||||||
|
Comment[hi]=पाठ फ़ाइलें संपादित करें
|
||||||
|
Comment[hr]=Uređivanje tekstualne datoteke
|
||||||
|
Comment[hu]=Szövegfájlok szerkesztése
|
||||||
|
Comment[id]=Edit file teks
|
||||||
|
Comment[it]=Modifica file di testo
|
||||||
|
Comment[ja]=テキストファイルを編集します
|
||||||
|
Comment[kn]=ಪಠ್ಯ ಕಡತಗಳನ್ನು ಸಂಪಾದಿಸು
|
||||||
|
Comment[ko]=텍스트 파일을 편집합니다
|
||||||
|
Comment[lt]=Redaguoti tekstines bylas
|
||||||
|
Comment[lv]=Rediģēt teksta failus
|
||||||
|
Comment[mk]=Уреди текстуални фајлови
|
||||||
|
Comment[ml]=വാചക രചനകള് തിരുത്തുക
|
||||||
|
Comment[mn]=Текст файл боловсруулах
|
||||||
|
Comment[mr]=गद्य फाइल संपादित करा
|
||||||
|
Comment[ms]=Edit fail teks
|
||||||
|
Comment[nb]=Rediger tekstfiler
|
||||||
|
Comment[ne]=पाठ फाइललाई संशोधन गर्नुहोस्
|
||||||
|
Comment[nl]=Tekstbestanden bewerken
|
||||||
|
Comment[nn]=Rediger tekstfiler
|
||||||
|
Comment[no]=Rediger tekstfiler
|
||||||
|
Comment[or]=ପାଠ୍ଯ ଫାଇଲଗୁଡ଼ିକୁ ସମ୍ପାଦନ କରନ୍ତୁ
|
||||||
|
Comment[pa]=ਪਾਠ ਫਾਇਲਾਂ ਸੰਪਾਦਨ
|
||||||
|
Comment[pl]=Edytor plików tekstowych
|
||||||
|
Comment[pt]=Editar ficheiros de texto
|
||||||
|
Comment[pt_BR]=Edite arquivos de texto
|
||||||
|
Comment[ro]=Editare fişiere text
|
||||||
|
Comment[ru]=Редактор текстовых файлов
|
||||||
|
Comment[sk]=Úprava textových súborov
|
||||||
|
Comment[sl]=Urejanje datotek z besedili
|
||||||
|
Comment[sq]=Përpuno files teksti
|
||||||
|
Comment[sr]=Измени текстуалне датотеке
|
||||||
|
Comment[sr@Latn]=Izmeni tekstualne datoteke
|
||||||
|
Comment[sv]=Redigera textfiler
|
||||||
|
Comment[ta]=உரை கோப்புகளை தொகுக்கவும்
|
||||||
|
Comment[th]=แก้ไขแฟ้มข้อความ
|
||||||
|
Comment[tk]=Metin faýllary editle
|
||||||
|
Comment[tr]=Metin dosyalarını düzenle
|
||||||
|
Comment[uk]=Редактор текстових файлів
|
||||||
|
Comment[vi]=Soạn thảo tập tin văn bản
|
||||||
|
Comment[wa]=Asspougnî des fitchîs tecses
|
||||||
|
Comment[zh_CN]=编辑文本文件
|
||||||
|
Comment[zh_TW]=編輯文字檔
|
||||||
|
TryExec=/home/daniel/.local/bin/nvim.appimage
|
||||||
|
Exec=gnome-terminal -e "/home/daniel/.local/bin/nvim.appimage %F"
|
||||||
|
Terminal=true
|
||||||
|
Type=Application
|
||||||
|
Keywords=Text;editor;
|
||||||
|
Icon=/home/daniel/.local/share/icons/nvim.svg
|
||||||
|
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++;
|
27
install/nvim.svg
Normal file
27
install/nvim.svg
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg width="602px" height="734px" viewBox="0 0 602 734" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||||
|
<title>neovim-mark@2x</title>
|
||||||
|
<description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description>
|
||||||
|
<defs>
|
||||||
|
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
||||||
|
<stop stop-color="#16B0ED" stop-opacity="0.800235524" offset="0%"></stop>
|
||||||
|
<stop stop-color="#0F59B2" stop-opacity="0.83700023" offset="100%"></stop>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
|
||||||
|
<stop stop-color="#7DB643" offset="0%"></stop>
|
||||||
|
<stop stop-color="#367533" offset="100%"></stop>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-3">
|
||||||
|
<stop stop-color="#88C649" stop-opacity="0.8" offset="0%"></stop>
|
||||||
|
<stop stop-color="#439240" stop-opacity="0.84" offset="100%"></stop>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
||||||
|
<g id="mark-copy" sketch:type="MSLayerGroup" transform="translate(2.000000, 3.000000)">
|
||||||
|
<path d="M0,155.5704 L155,-1 L154.999997,727 L0,572.237919 L0,155.5704 Z" id="Left---green" fill="url(#linearGradient-1)" sketch:type="MSShapeGroup"></path>
|
||||||
|
<path d="M443.060403,156.982405 L600,-1 L596.818792,727 L442,572.219941 L443.060403,156.982405 Z" id="Right---blue" fill="url(#linearGradient-2)" sketch:type="MSShapeGroup" transform="translate(521.000000, 363.500000) scale(-1, 1) translate(-521.000000, -363.500000) "></path>
|
||||||
|
<path d="M154.986294,0 L558,615.189696 L445.224605,728 L42,114.172017 L154.986294,0 Z" id="Cross---blue" fill="url(#linearGradient-3)" sketch:type="MSShapeGroup"></path>
|
||||||
|
<path d="M155,283.83232 L154.786754,308 L31,124.710606 L42.4619486,113 L155,283.83232 Z" id="Shadow" fill-opacity="0.13" fill="#000000" sketch:type="MSShapeGroup"></path>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue
Block a user