This commit is contained in:
BIN
cfg/aios.gpg
Normal file
BIN
cfg/aios.gpg
Normal file
Binary file not shown.
17
cfg/mcp.json
17
cfg/mcp.json
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"aigpt": {
|
||||
"command": "aigpt",
|
||||
"args": ["server"],
|
||||
"env": {}
|
||||
},
|
||||
"ailog": {
|
||||
"command": "ailog",
|
||||
"args": ["mcp"],
|
||||
"env": {
|
||||
"CHAT_SYSTEM_FILE": "/home/ai/.config/aigpt/core.md",
|
||||
"CHAT_OUTPUT": "/home/ai/log/public/content"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
17
cfg/pkg.sh
17
cfg/pkg.sh
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
ROOTFS="$1"
|
||||
|
||||
arch-chroot $ROOTFS /bin/sh -c 'rm -rf /tmp/gpt /tmp/log /tmp/shell'
|
||||
arch-chroot $ROOTFS /bin/sh -c '
|
||||
cd /tmp && git clone https://git.syui.ai/ai/gpt && cd /tmp/gpt && cargo build --release && cp target/release/aigpt /usr/local/bin/
|
||||
'
|
||||
arch-chroot $ROOTFS /bin/sh -c '
|
||||
cd /tmp && git clone -b main https://git.syui.ai/ai/log && cd /tmp/log && cargo build --release && cp target/release/ailog /usr/local/bin/
|
||||
'
|
||||
arch-chroot $ROOTFS /bin/sh -c '
|
||||
cd /tmp && git clone https://git.syui.ai/ai/shell && cd /tmp/shell && cargo build --release && cp target/release/aishell /usr/local/bin/
|
||||
'
|
||||
arch-chroot $ROOTFS /bin/sh -c 'rm -rf /tmp/gpt /tmp/log /tmp/shell'
|
||||
14
cfg/zshrc
14
cfg/zshrc
@@ -3,8 +3,6 @@ export PATH=$HOME/.cargo/bin:$PATH
|
||||
alias u="sudo pacman -Syu --noconfirm"
|
||||
alias zs="vim ~/.zshrc"
|
||||
alias zr="exec $SHELL && source ~/.zshrc"
|
||||
alias claude='claude --dangerously-skip-permissions'
|
||||
alias c='claude --dangerously-skip-permissions'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
@@ -25,3 +23,15 @@ bindkey '^[[B' history-substring-search-down
|
||||
if [[ -o login ]] && [[ -o interactive ]] && command -v aishell &>/dev/null; then
|
||||
exec aishell
|
||||
fi
|
||||
|
||||
function setup() {
|
||||
ailog setup
|
||||
# --- login ---
|
||||
# ailog oauth $handle
|
||||
# ailog oauth $handle_bot --bot
|
||||
# --- login ---
|
||||
ailog gpt core -d
|
||||
ailog gpt memory -d
|
||||
aigpt setup
|
||||
claude
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user