about summary refs log tree commit diff stats
path: root/bootstrap/config_setup/config_setup.sh
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-24 17:21:33 +0100
committerene <ene@sils.li>2023-02-24 17:21:33 +0100
commit386a1d9fb85fe163c7686ae8409eeca6f0ae89f3 (patch)
tree1d0a98116395fb3c285ce85b28ea90b91cef618e /bootstrap/config_setup/config_setup.sh
parentFix(neovim): Use the right name for the config dir (diff)
downloadnixos-config-386a1d9fb85fe163c7686ae8409eeca6f0ae89f3.tar.gz
nixos-config-386a1d9fb85fe163c7686ae8409eeca6f0ae89f3.zip
Feat(bootstrap): Add nvim to the setup
This is still not very nixy, but I would like to have it just work right
now. But sure, this will (hopefully) get rewritten someday.
Diffstat (limited to 'bootstrap/config_setup/config_setup.sh')
-rwxr-xr-xbootstrap/config_setup/config_setup.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/bootstrap/config_setup/config_setup.sh b/bootstrap/config_setup/config_setup.sh
new file mode 100755
index 00000000..92e91187
--- /dev/null
+++ b/bootstrap/config_setup/config_setup.sh
@@ -0,0 +1,13 @@
+#! /usr/bin/env dash
+# shellcheck disable=SC2086
+# shellcheck source=/dev/null
+. %SHELL_LIBRARY_PATH
+export LIB_TEMP_DIR_FOR_SCRIPT="$(mktemp -d)"
+
+
+# clone packer.nvim to the needed dir, for the nvim install to work
+git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
+
+nvim -c 'PackerSync' -c 'qall' -u '/mnt/soispha/.config/nvim/init.lua' --headless
+
+if [ -d "$LIB_TEMP_DIR_FOR_SCRIPT" ];then rm -r "$LIB_TEMP_DIR_FOR_SCRIPT"; fi