omni-catalyst 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1137 -0
- package/core/bin/core +85 -0
- package/core/bin/omni +21 -0
- package/core/cli/commands/--version.sh +8 -0
- package/core/cli/commands/brain.sh +1549 -0
- package/core/cli/commands/doctor.sh +834 -0
- package/core/cli/commands/env.sh +226 -0
- package/core/cli/commands/init.sh +1266 -0
- package/core/cli/commands/install.sh +759 -0
- package/core/cli/commands/list.sh +397 -0
- package/core/cli/commands/open.sh +71 -0
- package/core/cli/commands/pg.sh +761 -0
- package/core/cli/commands/reinstall.sh +694 -0
- package/core/cli/commands/show.sh +90 -0
- package/core/cli/commands/uninstall.sh +700 -0
- package/core/cli/commands/update.sh +754 -0
- package/core/cli/commands/voice.sh +170 -0
- package/core/cli/core.sh +82 -0
- package/core/cli/omni.sh +634 -0
- package/core/modules/ai.sh +152 -0
- package/core/modules/auto.sh +90 -0
- package/core/modules/db.sh +94 -0
- package/core/modules/deploy.sh +50 -0
- package/core/modules/dev.sh +126 -0
- package/core/modules/editor.sh +101 -0
- package/core/modules/lang.sh +100 -0
- package/core/modules/npm.sh +122 -0
- package/core/modules/shell.sh +312 -0
- package/core/modules/ui.sh +115 -0
- package/core/tools/ai/all.sh +63 -0
- package/core/tools/ai/antigravity-cli/README.md +45 -0
- package/core/tools/ai/antigravity-cli/bin/agy +28 -0
- package/core/tools/ai/antigravity-cli/helper/agy_helper.c +39 -0
- package/core/tools/ai/antigravity-cli/install.sh +469 -0
- package/core/tools/ai/claude-code/README.md +45 -0
- package/core/tools/ai/claude-code/bin/claude +29 -0
- package/core/tools/ai/claude-code/helper/claude_helper.c +42 -0
- package/core/tools/ai/claude-code/install.sh +278 -0
- package/core/tools/ai/codegraph/README.md +43 -0
- package/core/tools/ai/codegraph/bin/codegraph +3 -0
- package/core/tools/ai/codegraph/install.sh +149 -0
- package/core/tools/ai/codex/README.md +44 -0
- package/core/tools/ai/codex/install.sh +104 -0
- package/core/tools/ai/command-code/README.md +62 -0
- package/core/tools/ai/command-code/install.sh +136 -0
- package/core/tools/ai/engram/README.md +44 -0
- package/core/tools/ai/engram/install.sh +127 -0
- package/core/tools/ai/freebuff/README.md +52 -0
- package/core/tools/ai/freebuff/bin/freebuff +28 -0
- package/core/tools/ai/freebuff/helper/freebuff_helper.c +47 -0
- package/core/tools/ai/freebuff/install.sh +301 -0
- package/core/tools/ai/gemini-cli/README.md +46 -0
- package/core/tools/ai/gemini-cli/install.sh +111 -0
- package/core/tools/ai/gentle-ai/README.md +42 -0
- package/core/tools/ai/gentle-ai/install.sh +253 -0
- package/core/tools/ai/gentle-ai/termux-patches.go +256 -0
- package/core/tools/ai/gga/README.md +49 -0
- package/core/tools/ai/gga/install.sh +134 -0
- package/core/tools/ai/hermes-agent/README.md +50 -0
- package/core/tools/ai/hermes-agent/install.sh +80 -0
- package/core/tools/ai/heygen/README.md +24 -0
- package/core/tools/ai/heygen/install.sh +126 -0
- package/core/tools/ai/kilocode-cli/README.md +45 -0
- package/core/tools/ai/kilocode-cli/bin/kilocode +21 -0
- package/core/tools/ai/kilocode-cli/helper/kilocode_helper.c +47 -0
- package/core/tools/ai/kilocode-cli/install.sh +179 -0
- package/core/tools/ai/kimchi-code/README.md +8 -0
- package/core/tools/ai/kimchi-code/install.sh +120 -0
- package/core/tools/ai/kimi-code/README.md +45 -0
- package/core/tools/ai/kimi-code/install.sh +111 -0
- package/core/tools/ai/kiro-cli/README.md +23 -0
- package/core/tools/ai/kiro-cli/install.sh +127 -0
- package/core/tools/ai/mimocode/README.md +43 -0
- package/core/tools/ai/mimocode/bin/mimo +28 -0
- package/core/tools/ai/mimocode/helper/mimocode_helper.c +47 -0
- package/core/tools/ai/mimocode/install.sh +287 -0
- package/core/tools/ai/minimax-cli/README.md +45 -0
- package/core/tools/ai/minimax-cli/install.sh +111 -0
- package/core/tools/ai/mistral-vibe/README.md +46 -0
- package/core/tools/ai/mistral-vibe/install.sh +119 -0
- package/core/tools/ai/odysseus/README.md +35 -0
- package/core/tools/ai/odysseus/install.sh +163 -0
- package/core/tools/ai/ollama/README.md +44 -0
- package/core/tools/ai/ollama/install.sh +78 -0
- package/core/tools/ai/openclaude/README.md +46 -0
- package/core/tools/ai/openclaude/install.sh +110 -0
- package/core/tools/ai/openclaw/README.md +47 -0
- package/core/tools/ai/openclaw/install.sh +112 -0
- package/core/tools/ai/opencode/README.md +51 -0
- package/core/tools/ai/opencode/bin/opencode +28 -0
- package/core/tools/ai/opencode/helper/opencode_helper.c +57 -0
- package/core/tools/ai/opencode/install.sh +290 -0
- package/core/tools/ai/pi/README.md +46 -0
- package/core/tools/ai/pi/install.sh +104 -0
- package/core/tools/ai/qwen-code/README.md +45 -0
- package/core/tools/ai/qwen-code/install.sh +111 -0
- package/core/tools/ai/seedance/README.md +22 -0
- package/core/tools/ai/seedance/install.sh +134 -0
- package/core/tools/ai/veo3/README.md +36 -0
- package/core/tools/ai/veo3/install.sh +151 -0
- package/core/tools/auto/all.sh +57 -0
- package/core/tools/auto/n8n/README.md +47 -0
- package/core/tools/auto/n8n/install.sh +102 -0
- package/core/tools/db/all.sh +60 -0
- package/core/tools/db/mariadb/README.md +43 -0
- package/core/tools/db/mariadb/install.sh +65 -0
- package/core/tools/db/mongodb/README.md +42 -0
- package/core/tools/db/mongodb/install.sh +73 -0
- package/core/tools/db/postgresql/README.md +45 -0
- package/core/tools/db/postgresql/install.sh +65 -0
- package/core/tools/db/sqlite/README.md +44 -0
- package/core/tools/db/sqlite/install.sh +65 -0
- package/core/tools/deploy/all.sh +39 -0
- package/core/tools/deploy/netlify/install.sh +41 -0
- package/core/tools/deploy/railway/install.sh +47 -0
- package/core/tools/deploy/vercel/install.sh +43 -0
- package/core/tools/dev/all.sh +75 -0
- package/core/tools/dev/bat/README.md +44 -0
- package/core/tools/dev/bat/install.sh +82 -0
- package/core/tools/dev/bc/README.md +44 -0
- package/core/tools/dev/bc/install.sh +82 -0
- package/core/tools/dev/cloudflared/README.md +43 -0
- package/core/tools/dev/cloudflared/install.sh +82 -0
- package/core/tools/dev/curl/README.md +43 -0
- package/core/tools/dev/curl/install.sh +82 -0
- package/core/tools/dev/fzf/README.md +44 -0
- package/core/tools/dev/fzf/install.sh +82 -0
- package/core/tools/dev/gh/README.md +43 -0
- package/core/tools/dev/gh/install.sh +82 -0
- package/core/tools/dev/html2text/README.md +44 -0
- package/core/tools/dev/html2text/install.sh +82 -0
- package/core/tools/dev/imagemagick/README.md +44 -0
- package/core/tools/dev/imagemagick/install.sh +82 -0
- package/core/tools/dev/jq/README.md +44 -0
- package/core/tools/dev/jq/install.sh +82 -0
- package/core/tools/dev/lsd/README.md +44 -0
- package/core/tools/dev/lsd/install.sh +82 -0
- package/core/tools/dev/make/README.md +44 -0
- package/core/tools/dev/make/install.sh +82 -0
- package/core/tools/dev/ncurses/README.md +42 -0
- package/core/tools/dev/ncurses/install.sh +82 -0
- package/core/tools/dev/proot/README.md +43 -0
- package/core/tools/dev/proot/install.sh +82 -0
- package/core/tools/dev/shfmt/README.md +44 -0
- package/core/tools/dev/shfmt/install.sh +82 -0
- package/core/tools/dev/tmate/README.md +44 -0
- package/core/tools/dev/tmate/install.sh +82 -0
- package/core/tools/dev/translate/README.md +44 -0
- package/core/tools/dev/translate/install.sh +82 -0
- package/core/tools/dev/tree/README.md +44 -0
- package/core/tools/dev/tree/install.sh +82 -0
- package/core/tools/dev/udocker/README.md +44 -0
- package/core/tools/dev/udocker/install.sh +82 -0
- package/core/tools/dev/wget/README.md +44 -0
- package/core/tools/dev/wget/install.sh +82 -0
- package/core/tools/editor/all.sh +58 -0
- package/core/tools/editor/neovim/README.md +43 -0
- package/core/tools/editor/neovim/install.sh +66 -0
- package/core/tools/editor/nvchad/README.md +45 -0
- package/core/tools/editor/nvchad/install.sh +110 -0
- package/core/tools/lang/all.sh +63 -0
- package/core/tools/lang/clang/README.md +43 -0
- package/core/tools/lang/clang/install.sh +79 -0
- package/core/tools/lang/golang/README.md +43 -0
- package/core/tools/lang/golang/install.sh +79 -0
- package/core/tools/lang/nodejs/README.md +43 -0
- package/core/tools/lang/nodejs/install.sh +79 -0
- package/core/tools/lang/perl/README.md +43 -0
- package/core/tools/lang/perl/install.sh +79 -0
- package/core/tools/lang/php/README.md +43 -0
- package/core/tools/lang/php/install.sh +79 -0
- package/core/tools/lang/python/README.md +43 -0
- package/core/tools/lang/python/install.sh +79 -0
- package/core/tools/lang/rust/README.md +43 -0
- package/core/tools/lang/rust/install.sh +79 -0
- package/core/tools/npm/all.sh +67 -0
- package/core/tools/npm/live-server/README.md +43 -0
- package/core/tools/npm/live-server/install.sh +95 -0
- package/core/tools/npm/localtunnel/README.md +43 -0
- package/core/tools/npm/localtunnel/install.sh +111 -0
- package/core/tools/npm/markserv/README.md +43 -0
- package/core/tools/npm/markserv/install.sh +94 -0
- package/core/tools/npm/ncu/README.md +43 -0
- package/core/tools/npm/ncu/install.sh +94 -0
- package/core/tools/npm/nestjs/README.md +43 -0
- package/core/tools/npm/nestjs/install.sh +94 -0
- package/core/tools/npm/ngrok/README.md +44 -0
- package/core/tools/npm/ngrok/install.sh +94 -0
- package/core/tools/npm/prettier/README.md +43 -0
- package/core/tools/npm/prettier/install.sh +94 -0
- package/core/tools/npm/psqlformat/README.md +43 -0
- package/core/tools/npm/psqlformat/install.sh +94 -0
- package/core/tools/npm/turbopack/README.md +8 -0
- package/core/tools/npm/turbopack/install.sh +41 -0
- package/core/tools/npm/typescript/README.md +43 -0
- package/core/tools/npm/typescript/install.sh +94 -0
- package/core/tools/npm/vercel/README.md +43 -0
- package/core/tools/npm/vercel/install.sh +94 -0
- package/core/tools/shell/all.sh +67 -0
- package/core/tools/shell/better-npm/README.md +43 -0
- package/core/tools/shell/better-npm/install.sh +85 -0
- package/core/tools/shell/fzf-tab/README.md +44 -0
- package/core/tools/shell/fzf-tab/install.sh +85 -0
- package/core/tools/shell/history-substring/README.md +43 -0
- package/core/tools/shell/history-substring/install.sh +85 -0
- package/core/tools/shell/powerlevel10k/README.md +43 -0
- package/core/tools/shell/powerlevel10k/install.sh +85 -0
- package/core/tools/shell/you-should-use/README.md +43 -0
- package/core/tools/shell/you-should-use/install.sh +85 -0
- package/core/tools/shell/zsh-autopair/README.md +44 -0
- package/core/tools/shell/zsh-autopair/install.sh +85 -0
- package/core/tools/shell/zsh-autosuggestions/README.md +43 -0
- package/core/tools/shell/zsh-autosuggestions/install.sh +85 -0
- package/core/tools/shell/zsh-completions/README.md +43 -0
- package/core/tools/shell/zsh-completions/install.sh +85 -0
- package/core/tools/shell/zsh-defer/README.md +43 -0
- package/core/tools/shell/zsh-defer/install.sh +85 -0
- package/core/tools/shell/zsh-syntax-highlighting/README.md +43 -0
- package/core/tools/shell/zsh-syntax-highlighting/install.sh +72 -0
- package/core/tools/ui/all.sh +61 -0
- package/core/tools/ui/banner/README.md +42 -0
- package/core/tools/ui/banner/install.sh +151 -0
- package/core/tools/ui/cursor/README.md +42 -0
- package/core/tools/ui/cursor/install.sh +58 -0
- package/core/tools/ui/extra-keys/README.md +43 -0
- package/core/tools/ui/extra-keys/install.sh +62 -0
- package/core/tools/ui/font/README.md +43 -0
- package/core/tools/ui/font/install.sh +63 -0
- package/core/utils/banner.sh +519 -0
- package/core/utils/bootstrap.sh +25 -0
- package/core/utils/colors.sh +31 -0
- package/core/utils/dialogrc +30 -0
- package/core/utils/env.sh +53 -0
- package/core/utils/log.sh +598 -0
- package/install.sh +272 -0
- package/package.json +43 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Udocker
|
|
2
|
+
|
|
3
|
+
Run Docker containers without root privileges
|
|
4
|
+
|
|
5
|
+
**Package:** udocker
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://github.com/indigo-dc/udocker
|
|
9
|
+
**Type:** Container tool (pkg)
|
|
10
|
+
**License:** Apache 2.0
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Udocker is a tool that allows you to execute Docker containers in user space without requiring root privileges. It works by using chroot, proot, and other user-space mechanisms to provide container-like environments on systems where Docker is not available.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install dev --udocker
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall dev --udocker
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update dev --udocker
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `udocker`
|
|
41
|
+
- No root required
|
|
42
|
+
- Supports pulling from Docker Hub
|
|
43
|
+
- Limited compared to full Docker
|
|
44
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_udocker_pkg() {
|
|
8
|
+
loading "Installing Udocker" _install_udocker_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_udocker_pkg_impl() {
|
|
12
|
+
if ! pkg install udocker -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install Udocker"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_udocker_pkg() {
|
|
20
|
+
loading "Uninstalling Udocker" _uninstall_udocker_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_udocker_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall udocker -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall Udocker"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_udocker_pkg() {
|
|
32
|
+
loading "Updating Udocker" _update_udocker_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_udocker_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade udocker -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update Udocker"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_udocker() {
|
|
44
|
+
if command -v udocker &>/dev/null; then
|
|
45
|
+
log_info "Udocker is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing Udocker..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_udocker_pkg || return 1
|
|
53
|
+
log_success "Udocker installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_udocker() {
|
|
58
|
+
if ! command -v udocker &>/dev/null; then
|
|
59
|
+
log_info "Udocker is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling Udocker..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_udocker_pkg || return 1
|
|
66
|
+
log_success "Udocker uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_udocker() {
|
|
71
|
+
log_info "Updating Udocker..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_udocker_pkg || return 1
|
|
75
|
+
log_success "Udocker updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_udocker() {
|
|
80
|
+
uninstall_udocker
|
|
81
|
+
install_udocker
|
|
82
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Wget
|
|
2
|
+
|
|
3
|
+
Network downloader for retrieving files from the web
|
|
4
|
+
|
|
5
|
+
**Package:** wget
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://www.gnu.org/software/wget
|
|
9
|
+
**Type:** Development tool (pkg)
|
|
10
|
+
**License:** GPL-3.0
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, recursive downloading, and works in the background without user intervention.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install dev --wget
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall dev --wget
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update dev --wget
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `wget`
|
|
41
|
+
- Supports recursive downloads
|
|
42
|
+
- Resume interrupted downloads
|
|
43
|
+
- Bandwidth limiting
|
|
44
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_wget_pkg() {
|
|
8
|
+
loading "Installing Wget" _install_wget_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_wget_pkg_impl() {
|
|
12
|
+
if ! pkg install wget -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install Wget"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_wget_pkg() {
|
|
20
|
+
loading "Uninstalling Wget" _uninstall_wget_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_wget_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall wget -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall Wget"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_wget_pkg() {
|
|
32
|
+
loading "Updating Wget" _update_wget_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_wget_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade wget -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update Wget"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_wget() {
|
|
44
|
+
if command -v wget &>/dev/null; then
|
|
45
|
+
log_info "Wget is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing Wget..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_wget_pkg || return 1
|
|
53
|
+
log_success "Wget installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_wget() {
|
|
58
|
+
if ! command -v wget &>/dev/null; then
|
|
59
|
+
log_info "Wget is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling Wget..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_wget_pkg || return 1
|
|
66
|
+
log_success "Wget uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_wget() {
|
|
71
|
+
log_info "Updating Wget..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_wget_pkg || return 1
|
|
75
|
+
log_success "Wget updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_wget() {
|
|
80
|
+
uninstall_wget
|
|
81
|
+
install_wget
|
|
82
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_editor.log"
|
|
6
|
+
|
|
7
|
+
EDITOR_COMPONENTS=(
|
|
8
|
+
"neovim"
|
|
9
|
+
"nvchad"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
for _tool in "${EDITOR_COMPONENTS[@]}"; do
|
|
13
|
+
source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
|
|
14
|
+
done
|
|
15
|
+
unset _tool
|
|
16
|
+
|
|
17
|
+
_batch_editor() {
|
|
18
|
+
local action="$1"
|
|
19
|
+
local action_past="$2"
|
|
20
|
+
local count_var="$3"
|
|
21
|
+
local count=0
|
|
22
|
+
local failed=0
|
|
23
|
+
local total=${#EDITOR_COMPONENTS[@]}
|
|
24
|
+
local current=0
|
|
25
|
+
local func_name
|
|
26
|
+
|
|
27
|
+
progress_start "$total" "${action_past}ing editor components..."
|
|
28
|
+
|
|
29
|
+
for tool in "${EDITOR_COMPONENTS[@]}"; do
|
|
30
|
+
func_name="${action}_${tool//-/_}"
|
|
31
|
+
if declare -f "$func_name" &>/dev/null; then
|
|
32
|
+
loading "${action_past^}ing ${tool}" "$func_name"
|
|
33
|
+
case $? in 0) ((count++));; 1) ((failed++));; esac
|
|
34
|
+
fi
|
|
35
|
+
((current++))
|
|
36
|
+
progress_update "$current" "$total"
|
|
37
|
+
done
|
|
38
|
+
|
|
39
|
+
progress_done "$total"
|
|
40
|
+
eval "$count_var=$count"
|
|
41
|
+
return $failed
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
install_all_editor_components() {
|
|
45
|
+
_batch_editor "install" "install" "installed_count"
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
uninstall_all_editor_components() {
|
|
49
|
+
_batch_editor "uninstall" "uninstall" "uninstalled_count"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
update_all_editor_components() {
|
|
53
|
+
_batch_editor "update" "update" "updated_count"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
reinstall_all_editor_components() {
|
|
57
|
+
_batch_editor "reinstall" "reinstall" "reinstalled_count"
|
|
58
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Neovim
|
|
2
|
+
|
|
3
|
+
Fast, extensible code editor (modern Vim fork)
|
|
4
|
+
|
|
5
|
+
**Package:** neovim
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://neovim.io
|
|
9
|
+
**Type:** Code editor (pkg)
|
|
10
|
+
**License:** Apache 2.0
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Neovim is a hyper-extensible, modern fork of Vim. It provides a powerful editing experience with built-in LSP support, asynchronous job control, and a plugin architecture that allows extensive customization. It serves as the foundation for the NvChad configuration.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install editor --neovim
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall editor --neovim
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update editor --neovim
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `nvim`
|
|
41
|
+
- Can be configured standalone or with NvChad
|
|
42
|
+
- Supports LSP, treesitter, and Lua configuration
|
|
43
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_editor.log"
|
|
6
|
+
|
|
7
|
+
_install_neovim_impl() {
|
|
8
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
9
|
+
if pkg install neovim -y &>>"$LOG_FILE"; then
|
|
10
|
+
log_success "Neovim installed"
|
|
11
|
+
return 0
|
|
12
|
+
else
|
|
13
|
+
log_error "Failed to install Neovim"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
install_neovim() {
|
|
19
|
+
if command -v nvim &>/dev/null; then
|
|
20
|
+
log_info "Neovim is already installed"
|
|
21
|
+
return 0
|
|
22
|
+
fi
|
|
23
|
+
log_info "Installing Neovim..."
|
|
24
|
+
loading "Installing Neovim" _install_neovim_impl
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
_uninstall_neovim_impl() {
|
|
28
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
29
|
+
if pkg uninstall neovim -y &>>"$LOG_FILE"; then
|
|
30
|
+
log_success "Neovim uninstalled"
|
|
31
|
+
return 0
|
|
32
|
+
else
|
|
33
|
+
log_error "Failed to uninstall Neovim"
|
|
34
|
+
return 1
|
|
35
|
+
fi
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
uninstall_neovim() {
|
|
39
|
+
if ! command -v nvim &>/dev/null; then
|
|
40
|
+
log_info "Neovim is not installed"
|
|
41
|
+
return 2
|
|
42
|
+
fi
|
|
43
|
+
log_info "Uninstalling Neovim..."
|
|
44
|
+
loading "Uninstalling Neovim" _uninstall_neovim_impl
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
_update_neovim_impl() {
|
|
48
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
49
|
+
if pkg upgrade neovim -y &>>"$LOG_FILE"; then
|
|
50
|
+
log_success "Neovim updated"
|
|
51
|
+
return 0
|
|
52
|
+
else
|
|
53
|
+
log_error "Failed to update Neovim"
|
|
54
|
+
return 1
|
|
55
|
+
fi
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
update_neovim() {
|
|
59
|
+
log_info "Updating Neovim..."
|
|
60
|
+
loading "Updating Neovim" _update_neovim_impl
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
reinstall_neovim() {
|
|
64
|
+
uninstall_neovim
|
|
65
|
+
install_neovim
|
|
66
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# NvChad
|
|
2
|
+
|
|
3
|
+
Modern Neovim configuration with preconfigured plugins
|
|
4
|
+
|
|
5
|
+
**Package:** nvchad (configuration)
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://github.com/israel676767/nvchad-termux
|
|
9
|
+
**Type:** Code editor configuration (git clone)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
NvChad is a modern Neovim configuration that provides a complete IDE-like experience out of the box. The Omni Catalyst version includes GitHub Copilot, CodeCompanion AI, preconfigured LSP support, syntax highlighting, file explorer, and much more.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Neovim, git, nodejs-lts, python, perl, curl, wget
|
|
19
|
+
- lua-language-server, ripgrep, stylua, tree-sitter
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
core install editor --nvchad
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Uninstall
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
core uninstall editor --nvchad
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Update
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
core update editor --nvchad
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Notes
|
|
40
|
+
|
|
41
|
+
- Installs to `~/.config/nvim/`
|
|
42
|
+
- Includes GitHub Copilot and CodeCompanion
|
|
43
|
+
- Preconfigured for TypeScript, JavaScript, Python, PHP, Perl, Rust, Lua
|
|
44
|
+
- For detailed information: https://github.com/israel676767/nvchad-termux
|
|
45
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_editor.log"
|
|
6
|
+
NVCHAD_REPO="https://github.com/israel676767/nvchad-termux.git"
|
|
7
|
+
NVCHAD_DIR="$OMNI_DATA/nvchad-termux"
|
|
8
|
+
|
|
9
|
+
_nvchad_dependencies() {
|
|
10
|
+
declare -A DEPS=(
|
|
11
|
+
["git"]="git"
|
|
12
|
+
["neovim"]="nvim"
|
|
13
|
+
["nodejs-lts"]="node"
|
|
14
|
+
["python"]="python"
|
|
15
|
+
["perl"]="perl"
|
|
16
|
+
["curl"]="curl"
|
|
17
|
+
["wget"]="wget"
|
|
18
|
+
["lua-language-server"]="lua-language-server"
|
|
19
|
+
["ripgrep"]="rg"
|
|
20
|
+
["stylua"]="stylua"
|
|
21
|
+
["tree-sitter"]="tree-sitter"
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
local pkg_name bin_name
|
|
25
|
+
for pkg_name in "${!DEPS[@]}"; do
|
|
26
|
+
bin_name="${DEPS[$pkg_name]}"
|
|
27
|
+
if ! command -v "$bin_name" &>/dev/null; then
|
|
28
|
+
if ! pkg install "$pkg_name" -y &>>"$LOG_FILE"; then
|
|
29
|
+
log_error "Failed to install $pkg_name"
|
|
30
|
+
return 1
|
|
31
|
+
fi
|
|
32
|
+
fi
|
|
33
|
+
done
|
|
34
|
+
|
|
35
|
+
log_success "NvChad dependencies installed"
|
|
36
|
+
return 0
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
_install_nvchad_impl() {
|
|
40
|
+
_nvchad_dependencies
|
|
41
|
+
|
|
42
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
43
|
+
|
|
44
|
+
rm -rf "$NVCHAD_DIR" &>>"$LOG_FILE"
|
|
45
|
+
if git clone "$NVCHAD_REPO" "$NVCHAD_DIR" &>>"$LOG_FILE"; then
|
|
46
|
+
cp -r "$NVCHAD_DIR/nvim" ~/.config/ &>>"$LOG_FILE"
|
|
47
|
+
nvim --headless "+Lazy! sync" +qa &>>"$LOG_FILE"
|
|
48
|
+
nvim --headless "+Lazy! clean nvim-treesitter" +qa &>>"$LOG_FILE"
|
|
49
|
+
nvim --headless "+Lazy! install nvim-treesitter" +qa &>>"$LOG_FILE"
|
|
50
|
+
log_success "NvChad installed"
|
|
51
|
+
return 0
|
|
52
|
+
else
|
|
53
|
+
log_error "Failed to install NvChad"
|
|
54
|
+
return 1
|
|
55
|
+
fi
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
install_nvchad() {
|
|
59
|
+
if [[ -d "$HOME/.config/nvim" ]]; then
|
|
60
|
+
log_info "NvChad already installed"
|
|
61
|
+
return 0
|
|
62
|
+
fi
|
|
63
|
+
log_info "Installing NvChad..."
|
|
64
|
+
loading "Installing NvChad" _install_nvchad_impl
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
_uninstall_nvchad_impl() {
|
|
68
|
+
if [[ -d "$HOME/.config/nvim" ]]; then
|
|
69
|
+
rm -rf ~/.config/nvim &>>"$LOG_FILE"
|
|
70
|
+
rm -rf ~/.local/state/nvim &>>"$LOG_FILE"
|
|
71
|
+
rm -rf ~/.local/share/nvim &>>"$LOG_FILE"
|
|
72
|
+
rm -rf "$NVCHAD_DIR" &>>"$LOG_FILE"
|
|
73
|
+
log_success "NvChad uninstalled"
|
|
74
|
+
else
|
|
75
|
+
log_warn "NvChad not installed"
|
|
76
|
+
fi
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
uninstall_nvchad() {
|
|
80
|
+
if [[ ! -d "$HOME/.config/nvim" ]]; then
|
|
81
|
+
log_info "NvChad is not installed"
|
|
82
|
+
return 2
|
|
83
|
+
fi
|
|
84
|
+
log_info "Uninstalling NvChad..."
|
|
85
|
+
loading "Uninstalling NvChad" _uninstall_nvchad_impl
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
_update_nvchad_impl() {
|
|
89
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
90
|
+
|
|
91
|
+
rm -rf "$NVCHAD_DIR" &>>"$LOG_FILE"
|
|
92
|
+
if git clone "$NVCHAD_REPO" "$NVCHAD_DIR" &>>"$LOG_FILE"; then
|
|
93
|
+
cp -r "$NVCHAD_DIR/nvim" ~/.config/ &>>"$LOG_FILE"
|
|
94
|
+
log_success "NvChad updated"
|
|
95
|
+
return 0
|
|
96
|
+
else
|
|
97
|
+
log_error "Failed to update NvChad"
|
|
98
|
+
return 1
|
|
99
|
+
fi
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
update_nvchad() {
|
|
103
|
+
log_info "Updating NvChad..."
|
|
104
|
+
loading "Updating NvChad" _update_nvchad_impl
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
reinstall_nvchad() {
|
|
108
|
+
uninstall_nvchad
|
|
109
|
+
install_nvchad
|
|
110
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_lang.log"
|
|
6
|
+
|
|
7
|
+
LANGUAGE_PACKAGES=(
|
|
8
|
+
"nodejs"
|
|
9
|
+
"python"
|
|
10
|
+
"perl"
|
|
11
|
+
"php"
|
|
12
|
+
"rust"
|
|
13
|
+
"clang"
|
|
14
|
+
"golang"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
for _tool in "${LANGUAGE_PACKAGES[@]}"; do
|
|
18
|
+
source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
|
|
19
|
+
done
|
|
20
|
+
unset _tool
|
|
21
|
+
|
|
22
|
+
_batch_lang() {
|
|
23
|
+
local action="$1"
|
|
24
|
+
local action_past="$2"
|
|
25
|
+
local count_var="$3"
|
|
26
|
+
local count=0
|
|
27
|
+
local failed=0
|
|
28
|
+
local total=${#LANGUAGE_PACKAGES[@]}
|
|
29
|
+
local current=0
|
|
30
|
+
local func_name
|
|
31
|
+
|
|
32
|
+
progress_start "$total" "${action_past}ing language packages..."
|
|
33
|
+
|
|
34
|
+
for tool in "${LANGUAGE_PACKAGES[@]}"; do
|
|
35
|
+
func_name="${action}_${tool//-/_}"
|
|
36
|
+
if declare -f "$func_name" &>/dev/null; then
|
|
37
|
+
loading "${action_past^}ing ${tool}" "$func_name"
|
|
38
|
+
case $? in 0) ((count++));; 1) ((failed++));; esac
|
|
39
|
+
fi
|
|
40
|
+
((current++))
|
|
41
|
+
progress_update "$current" "$total"
|
|
42
|
+
done
|
|
43
|
+
|
|
44
|
+
progress_done "$total"
|
|
45
|
+
eval "$count_var=$count"
|
|
46
|
+
return $failed
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
install_all_lang_packages() {
|
|
50
|
+
_batch_lang "install" "install" "installed_count"
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
uninstall_all_lang_packages() {
|
|
54
|
+
_batch_lang "uninstall" "uninstall" "uninstalled_count"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
update_all_lang_packages() {
|
|
58
|
+
_batch_lang "update" "update" "updated_count"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
reinstall_all_lang_packages() {
|
|
62
|
+
_batch_lang "reinstall" "reinstall" "reinstalled_count"
|
|
63
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# C/C++ (Clang)
|
|
2
|
+
|
|
3
|
+
LLVM C/C++ compiler for systems programming
|
|
4
|
+
|
|
5
|
+
**Package:** clang
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://clang.llvm.org
|
|
9
|
+
**Type:** Language compiler (pkg)
|
|
10
|
+
**License:** Apache 2.0 with LLVM Exceptions
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Clang is a C, C++, and Objective-C compiler which aims to deliver amazingly fast compiles, extremely useful error and warning messages, and to provide a platform for building great source level tools. It is part of the LLVM compiler infrastructure project.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install lang --clang
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall lang --clang
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update lang --clang
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Commands: `clang`, `clang++`, `clang-format`
|
|
41
|
+
- Includes LLVM tools
|
|
42
|
+
- Required for compiling many native extensions
|
|
43
|
+
|