File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,13 @@ _agent_ensure_home() {
3333 local stack_home
3434 stack_home=$( _agent_stack_home)
3535
36- mkdir -p " ${stack_home} /.claude" " ${stack_home} /.codex" " ${stack_home} /.chrome-agent" " ${stack_home} /.sheldon"
36+ mkdir -p \
37+ " ${stack_home} /.claude" \
38+ " ${stack_home} /.codex" \
39+ " ${stack_home} /.chrome-agent" \
40+ " ${stack_home} /.mise" \
41+ " ${stack_home} /.mise/state" \
42+ " ${stack_home} /.sheldon"
3743
3844 if [[ ! -f " ${stack_home} /.env" ]]; then
3945 touch " ${stack_home} /.env"
@@ -172,6 +178,8 @@ _agent_run() {
172178 ${ssh_agent_args[@]} \
173179 -e CODEX_HOME=/home/agent/.agent-stack/.codex \
174180 -e CLAUDE_CONFIG_DIR=/home/agent/.agent-stack/.claude \
181+ -e MISE_GLOBAL_CONFIG_FILE=/home/agent/.agent-stack/.mise/config.toml \
182+ -e MISE_STATE_DIR=/home/agent/.agent-stack/.mise/state \
175183 --add-host host.docker.internal:host-gateway \
176184 " ${image} " " ${container_cmd[@]} "
177185}
Original file line number Diff line number Diff line change 11[tools ]
2+ fzf = " latest"
23node = " 23"
Original file line number Diff line number Diff line change @@ -9,13 +9,15 @@ source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
99export SHELDON_CONFIG_FILE=" $HOME /.agent-stack/.sheldon/plugins.toml"
1010export SHELDON_DATA_DIR=" $HOME /.agent-stack/.sheldon"
1111
12+ . ~ /.profile.sh
13+
1214if [[ -f " $SHELDON_CONFIG_FILE " ]]; then
1315 eval " $( sheldon source) "
1416fi
1517
1618eval " $( starship init zsh) "
17- eval " $( fzf --zsh) "
19+ if command -v fzf > /dev/null 2>&1 ; then
20+ eval " $( fzf --zsh) "
21+ fi
1822export _ZO_DATA_DIR=" $HOME /.agent-stack/.zoxide"
1923eval " $( zoxide init zsh) "
20-
21- . ~ /.profile.sh
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1616 build-essential \
1717 ca-certificates \
1818 curl \
19- fzf \
2019 git \
2120 git-lfs \
2221 grep \
Original file line number Diff line number Diff line change @@ -53,10 +53,23 @@ start_tcp_bridges() {
5353 done
5454}
5555
56+ ensure_mise_tools () {
57+ if ! command -v mise > /dev/null 2>&1 ; then
58+ return 0
59+ fi
60+
61+ if mise which fzf > /dev/null 2>&1 ; then
62+ return 0
63+ fi
64+
65+ mise use -g fzf@latest > /dev/null
66+ }
67+
5668if [ " $( id -u) " = " 0" ]; then
5769 fix_docker_socket_group
5870 exec gosu agent " $0 " " $@ "
5971fi
6072
6173start_tcp_bridges
74+ ensure_mise_tools
6275exec " $@ "
You can’t perform that action at this time.
0 commit comments