aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdistro/ubuntu.sh29
-rw-r--r--kshrc2
2 files changed, 31 insertions, 0 deletions
diff --git a/distro/ubuntu.sh b/distro/ubuntu.sh
new file mode 100755
index 0000000..b8cd3ea
--- /dev/null
+++ b/distro/ubuntu.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+set -ex
+nvimdir="$HOME/scm/pub/neovim-nvim"
+
+sudo apt install -y \
+ scdaemon \
+ git \
+ curl \
+ neofetch \
+ tmux \
+ htop \
+ vim \
+ neovim \
+ oathtool \
+ dconf-editor \
+ npm \
+ pavucontrol \
+ lua-nvim
+
+sudo apt build-dep -y neovim
+
+if ! [ -d "$nvimdir" ] ; then
+ git clone https://github.com/neovim/neovim "$nvimdir"
+fi
+cd "$nvimdir"
+rm -rf build || echo ""
+make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
+make install
+cd -
diff --git a/kshrc b/kshrc
index 03be252..202f9ff 100644
--- a/kshrc
+++ b/kshrc
@@ -535,5 +535,7 @@ if [ $COLOR -eq 1 ] ; then
setlscolors
fi
+[ -d "$HOME/.local/bin" ] && path_preappend "$HOME/.local/bin"
+
# Include local configuration options
[ -r "$LOCAL" ] && . "$LOCAL"