From 3026f94bccb9b2c8cd538b4070ae1e390b96ea87 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Tue, 23 Jan 2024 00:08:07 -0500 Subject: Add .local/bin to PATH. Ubuntu script --- distro/ubuntu.sh | 29 +++++++++++++++++++++++++++++ kshrc | 2 ++ 2 files changed, 31 insertions(+) create mode 100755 distro/ubuntu.sh 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" -- cgit v1.2.3