OSDN Git Service

nvim as editor and qt5ct as theme
authorpaperbenni <paperbenni@gmail.com>
Wed, 1 Jan 2020 14:32:27 +0000 (15:32 +0100)
committerpaperbenni <paperbenni@gmail.com>
Wed, 1 Jan 2020 14:32:27 +0000 (15:32 +0100)
depend.sh
install.sh

index e74ffd7..3be45db 100644 (file)
--- a/depend.sh
+++ b/depend.sh
@@ -22,6 +22,7 @@ if cat /etc/os-release | grep -iq 'name.*arch' ||
     pacinstall dunst
 
     pacinstall bash dash tmux
+    pacinstall neovim
     pacinstall dialog
     pacinstall wget slop
     pacinstall acpi
@@ -29,6 +30,7 @@ if cat /etc/os-release | grep -iq 'name.*arch' ||
 
     aptinstall git
     aptinstall subversion
+    aptinstall neovim
 
     pacinstall ffmpeg
     pacinstall feh
index 991c84c..0f6b001 100755 (executable)
@@ -26,6 +26,7 @@ addenv() {
         local FORCE="true"
         shift 1
     fi
+
     if grep -q "$1=" /etc/environment; then
         if [ -z "$FORCE" ]; then
             echo "key already there"
@@ -38,6 +39,9 @@ addenv() {
     fi
 }
 
+addenv -f "QT_QPA_PLATFORMTHEME" "qt5ct"
+command -v nvim &>/dev/null && addenv -f "EDITOR" "$(which nvim)"
+
 THEME="${1:-dracula}"
 echo "using theme $THEME"
 [ -e ~/paperbenni ] || mkdir ~/paperbenni