aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rwxr-xr-xrun.sh4
-rwxr-xr-xruns-all/48-get-reqs-arch.sh (renamed from runs-all/get-reqs-arch.sh)0
-rwxr-xr-xruns-all/50-env.sh (renamed from runs-all/env.sh)9
-rwxr-xr-xruns-all/50-mimes.sh (renamed from runs-all/mimes.sh)0
-rwxr-xr-xruns-all/51-get-vis-plugins.sh15
-rwxr-xr-xruns-all/get-reqs-arch/vis-reqs.sh2
-rwxr-xr-xruns/48-get-reqs-arch.sh (renamed from runs/get-reqs-arch.sh)0
-rwxr-xr-xruns/50-env.sh27
-rwxr-xr-xruns/51-packer.sh (renamed from runs/packer.sh)0
-rwxr-xr-xruns/env.sh15
11 files changed, 54 insertions, 19 deletions
diff --git a/README.md b/README.md
index 3aa9255..12e8f08 100644
--- a/README.md
+++ b/README.md
@@ -103,5 +103,4 @@ i liked how primagen did his dev environment and deploying of scripts. so im mak
## todo
-- [ ] make symlink. where if -s. do symlink instead of env
- [ ] make fully portable version, all pulled and compiled version bins for just devtools.
diff --git a/run.sh b/run.sh
index c06feed..72bbf5d 100755
--- a/run.sh
+++ b/run.sh
@@ -4,12 +4,14 @@ echo DEV_ENV "$DEV_ENV"
run_runs_all=0
list_runs=0
-while getopts "al" opt; do
+while getopts "als" opt; do
case "$opt" in
a) run_runs_all=1
;;
l) list_runs=1
;;
+ s) export CREATE_SYMLINKS=1
+ ;;
*) echo invalid args
exit
;;
diff --git a/runs-all/get-reqs-arch.sh b/runs-all/48-get-reqs-arch.sh
index 0e31a00..0e31a00 100755
--- a/runs-all/get-reqs-arch.sh
+++ b/runs-all/48-get-reqs-arch.sh
diff --git a/runs-all/env.sh b/runs-all/50-env.sh
index a3ae7e7..a3583b9 100755
--- a/runs-all/env.sh
+++ b/runs-all/50-env.sh
@@ -1,7 +1,12 @@
#!/bin/sh
echo DEPLOYING ENV ALL
-cp -r "$script_dir/env/." "$DEV_ENV"
-[ -d "$script_dir/env_private/env/" ] && cp -r "$script_dir/env_private/env/." "$DEV_ENV"
+if [ "$CREATE_SYMLINKS" = 1 ]; then
+ cp -rs "$script_dir/env/." "$DEV_ENV"
+ [ -d "$script_dir/env_private/env/" ] && echo LINKING ENV PRIVATE______ && cp -rs "$script_dir/env_private/env/." "$DEV_ENV"
+else
+ cp -r "$script_dir/env/." "$DEV_ENV"
+ [ -d "$script_dir/env_private/env/" ] && echo COPYING ENV PRIVATE______ && cp -r "$script_dir/env_private/env/." "$DEV_ENV"
+fi
if [ ! -f "/etc/profile" ]; then
diff --git a/runs-all/mimes.sh b/runs-all/50-mimes.sh
index 8e92f8e..8e92f8e 100755
--- a/runs-all/mimes.sh
+++ b/runs-all/50-mimes.sh
diff --git a/runs-all/51-get-vis-plugins.sh b/runs-all/51-get-vis-plugins.sh
new file mode 100755
index 0000000..17b2bde
--- /dev/null
+++ b/runs-all/51-get-vis-plugins.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+echo DOWNLOADING VIS PLUGINS
+
+plugindir="$DEV_ENV/.config/vis/plugins"
+
+git clone https://codeberg.org/luxanna/vis-autoclose "$plugindir/vis-autoclose"
+git clone git@servgit:iceyrazor/vis-chain "$plugindir/vis-chain"
+git clone https://github.com/thimc/vis-colorizer "$plugindir/vis-colorizer"
+git clone https://github.com/milhnl/vis-format "$plugindir/vis-format"
+git clone https://codeberg.org/muhq/vis-lspc.git "$plugindir/vis-lspc"
+echo SKIPPING vis-modal. SITE DOWN
+#git clone https://git.symlinx.net/vis-modal/ "$plugindir/vis-modal"
+git clone https://codeberg.org/muhq/vis-spellcheck "$plugindir/vis-spellcheck"
+
+echo -----------------
diff --git a/runs-all/get-reqs-arch/vis-reqs.sh b/runs-all/get-reqs-arch/vis-reqs.sh
new file mode 100755
index 0000000..6ac7b44
--- /dev/null
+++ b/runs-all/get-reqs-arch/vis-reqs.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+$sudo pacman -S --noconfirm lua52 ncurses lua52-lpeg tree-sitter tree-sitter-c tree-sitter-lua tree-sitter-markdown
diff --git a/runs/get-reqs-arch.sh b/runs/48-get-reqs-arch.sh
index 636863f..636863f 100755
--- a/runs/get-reqs-arch.sh
+++ b/runs/48-get-reqs-arch.sh
diff --git a/runs/50-env.sh b/runs/50-env.sh
new file mode 100755
index 0000000..0e4fb66
--- /dev/null
+++ b/runs/50-env.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+echo DEPLOYING ENV
+
+if [ "$CREATE_SYMLINKS" = 1 ]; then
+ cp -s "$script_dir/env/.bashrc" "$DEV_ENV"
+ cp -s "$script_dir/env/.bash_profile" "$DEV_ENV"
+ cp -s "$script_dir/env/.vimrc" "$DEV_ENV"
+ mkdir "$DEV_ENV/.config"
+ cp -s "$script_dir/env/.config/.profile" "$DEV_ENV/.config"
+ cp -rs "$script_dir/env/.config/nvim" "$DEV_ENV/.config"
+ cp -rs "$script_dir/env/.config/vis" "$DEV_ENV/.config"
+ cp -rs "$script_dir/env/.config/tmux" "$DEV_ENV/.config"
+ cp -rs "$script_dir/env/.config/wezterm" "$DEV_ENV/.config"
+else
+ cp "$script_dir/env/.bashrc" "$DEV_ENV"
+ cp "$script_dir/env/.bash_profile" "$DEV_ENV"
+ cp "$script_dir/env/.vimrc" "$DEV_ENV"
+ mkdir "$DEV_ENV/.config"
+ cp "$script_dir/env/.config/.profile" "$DEV_ENV/.config"
+ cp -r "$script_dir/env/.config/nvim" "$DEV_ENV/.config"
+ cp -r "$script_dir/env/.config/vis" "$DEV_ENV/.config"
+ cp -r "$script_dir/env/.config/tmux" "$DEV_ENV/.config"
+ cp -r "$script_dir/env/.config/wezterm" "$DEV_ENV/.config"
+fi
+
+echo "-----------------"
diff --git a/runs/packer.sh b/runs/51-packer.sh
index 6785682..6785682 100755
--- a/runs/packer.sh
+++ b/runs/51-packer.sh
diff --git a/runs/env.sh b/runs/env.sh
deleted file mode 100755
index 7f34098..0000000
--- a/runs/env.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-echo DEPLOYING ENV
-
-cp "$script_dir/env/.bashrc" "$DEV_ENV"
-cp "$script_dir/env/.bash_profile" "$DEV_ENV"
-cp "$script_dir/env/.vimrc" "$DEV_ENV"
-mkdir "$DEV_ENV/.config"
-cp "$script_dir/env/.config/.profile" "$DEV_ENV/.config"
-cp -r "$script_dir/env/.config/nvim" "$DEV_ENV/.config"
-cp -r "$script_dir/env/.config/vis" "$DEV_ENV/.config"
-cp -r "$script_dir/env/.config/tmux" "$DEV_ENV/.config"
-cp -r "$script_dir/env/.config/wezterm" "$DEV_ENV/.config"
-
-echo "-----------------"