opencode dotfiles, zshrc alias and zig for doom emacs
This commit is contained in:
parent
4c02565a72
commit
aeb02c42de
5 changed files with 106 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
|||
;;terra ; Earth and Moon in alignment for performance.
|
||||
;;web ; the tubes
|
||||
;;yaml ; JSON, but readable
|
||||
;;zig ; C, but simpler
|
||||
zig ; C, but simpler
|
||||
(verilog +lsp)
|
||||
|
||||
:email
|
||||
|
|
|
|||
28
opencode/.config/opencode-team/opencode.jsonc
Normal file
28
opencode/.config/opencode-team/opencode.jsonc
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"model": "deepseek-v4-pro",
|
||||
"autoupdate": true,
|
||||
|
||||
// Activating the full team layer ONLY inside this profile directory
|
||||
"plugin": [
|
||||
"oh-my-openagent",
|
||||
"opencode-canvas"
|
||||
],
|
||||
|
||||
"permission": {
|
||||
"read": {
|
||||
"**/build/**": "deny",
|
||||
"**/.verilator/**": "deny",
|
||||
"**/*.vcd": "deny",
|
||||
"**/*.fst": "deny",
|
||||
"**/*.o": "deny",
|
||||
"**/*.a": "deny",
|
||||
"*": "allow"
|
||||
},
|
||||
"edit": {
|
||||
"**/build/**": "deny",
|
||||
"*": "allow"
|
||||
},
|
||||
"bash": "allow"
|
||||
}
|
||||
}
|
||||
28
opencode/.config/opencode/oh-my-openagent.jsonc
Normal file
28
opencode/.config/opencode/oh-my-openagent.jsonc
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json",
|
||||
|
||||
"agents": {
|
||||
// Sisyphus and Hephaestus manage your deep pipeline logic via the Pro reasoning engine
|
||||
"sisyphus": {
|
||||
"model": "opencode-go/deepseek-v4-pro"
|
||||
},
|
||||
"hephaestus": {
|
||||
"model": "opencode-go/deepseek-v4-pro"
|
||||
},
|
||||
// Prometheus handles state machine planning via long-context Kimi
|
||||
"prometheus": {
|
||||
"model": "opencode-go/kimi-k2.6"
|
||||
},
|
||||
// Atlas coordinates execution steps
|
||||
"atlas": {
|
||||
"model": "opencode-go/qwen3.7-max"
|
||||
},
|
||||
// Explore and Librarian handle file-scraping using the high-volume Flash engine
|
||||
"explore": {
|
||||
"model": "opencode-go/deepseek-v4-flash"
|
||||
},
|
||||
"librarian": {
|
||||
"model": "opencode-go/deepseek-v4-flash"
|
||||
}
|
||||
}
|
||||
}
|
||||
23
opencode/.config/opencode/opencode.jsonc
Normal file
23
opencode/.config/opencode/opencode.jsonc
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"autoupdate": true,
|
||||
|
||||
"plugin": [],
|
||||
|
||||
"permission": {
|
||||
"read": {
|
||||
"**/build/**": "deny",
|
||||
"**/.verilator/**": "deny",
|
||||
"**/*.vcd": "deny",
|
||||
"**/*.fst": "deny",
|
||||
"**/*.o": "deny",
|
||||
"**/*.a": "deny",
|
||||
"*": "allow"
|
||||
},
|
||||
"edit": {
|
||||
"**/build/**": "deny",
|
||||
"*": "allow"
|
||||
},
|
||||
"bash": "allow"
|
||||
}
|
||||
}
|
||||
26
zsh/.zshrc
26
zsh/.zshrc
|
|
@ -124,3 +124,29 @@ upload() {
|
|||
}
|
||||
|
||||
xhost +si:localuser:$(whoami) &> /dev/null
|
||||
|
||||
block() {
|
||||
if [ "$1" = "website" ]; then
|
||||
# Default behavior if you literally type 'block website'
|
||||
echo "Blocking default IP (157.240.22.35) for 1 hour..."
|
||||
sudo firewall-cmd --add-rich-rule='rule family="ipv4" destination address="157.240.22.35" drop' --timeout=60m
|
||||
elif [ -n "$1" ]; then
|
||||
# Advanced behavior: Resolves the IP of whatever domain you type
|
||||
echo "Looking up IP for $1..."
|
||||
local ip=$(getent ahosts "$1" | awk '{print $1}' | head -n 1)
|
||||
|
||||
if [ -n "$ip" ]; then
|
||||
echo "Blocking $1 ($ip) for 1 hour..."
|
||||
sudo firewall-cmd --add-rich-rule="rule family=\"ipv4\" destination address=\"$ip\" drop" --timeout=60m
|
||||
else
|
||||
echo "Error: Could not resolve IP for $1"
|
||||
fi
|
||||
else
|
||||
echo "Usage: block [website_domain] or 'block website'"
|
||||
fi
|
||||
}
|
||||
|
||||
alias ssh="TERM=xterm-256color ssh"
|
||||
|
||||
alias opencode="opencode"
|
||||
alias opencode-team="OPENCODE_CONFIG_DIR=~/.config/opencode-team opencode"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue