diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-09-19 18:21:43 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-09-19 18:21:43 -0500 |
| commit | c058edf67d703e5adc22f2953cdcdd696b969f41 (patch) | |
| tree | c174545b38f25eb7e865525af27fb8f81704d1b3 | |
| parent | 1e36cd234ce035a500e03b35e844ea7019f8fcca (diff) | |
Squashed commit of the following:
added vis plugin downloader
fixed env scripts
changed get-reqs priority
priority in runs
symlinks :>
| -rw-r--r-- | README.md | 1 | ||||
| -rwxr-xr-x | run.sh | 4 | ||||
| -rwxr-xr-x | runs-all/48-get-reqs-arch.sh (renamed from runs-all/get-reqs-arch.sh) | 0 | ||||
| -rwxr-xr-x | runs-all/50-env.sh (renamed from runs-all/env.sh) | 9 | ||||
| -rwxr-xr-x | runs-all/50-mimes.sh (renamed from runs-all/mimes.sh) | 0 | ||||
| -rwxr-xr-x | runs-all/51-get-vis-plugins.sh | 15 | ||||
| -rwxr-xr-x | runs-all/get-reqs-arch/vis-reqs.sh | 2 | ||||
| -rwxr-xr-x | runs/48-get-reqs-arch.sh (renamed from runs/get-reqs-arch.sh) | 0 | ||||
| -rwxr-xr-x | runs/50-env.sh | 27 | ||||
| -rwxr-xr-x | runs/51-packer.sh (renamed from runs/packer.sh) | 0 | ||||
| -rwxr-xr-x | runs/env.sh | 15 |
11 files changed, 54 insertions, 19 deletions
@@ -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. @@ -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 "-----------------" |
