diff options
Diffstat (limited to 'dotfiles')
| -rwxr-xr-x | dotfiles/system/.local/bin/ai-assistants | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dotfiles/system/.local/bin/ai-assistants b/dotfiles/system/.local/bin/ai-assistants index 764dfd7..526be6a 100755 --- a/dotfiles/system/.local/bin/ai-assistants +++ b/dotfiles/system/.local/bin/ai-assistants @@ -27,6 +27,7 @@ CLAUDE_CMD='claude "Please read ./docs/NOTES.org and begin the session start wor first="${projects[0]}" name="${first%%:*}" dir="${first#*:}" +dir="${dir/#\~/$HOME}" tmux new-session -d -s "$SESSION" -n "$name" -c "$dir" tmux send-keys -t "$SESSION:$name" "$CLAUDE_CMD" Enter @@ -34,6 +35,7 @@ tmux send-keys -t "$SESSION:$name" "$CLAUDE_CMD" Enter for project in "${projects[@]:1}"; do name="${project%%:*}" dir="${project#*:}" + dir="${dir/#\~/$HOME}" tmux new-window -t "$SESSION" -n "$name" -c "$dir" tmux send-keys -t "$SESSION:$name" "$CLAUDE_CMD" Enter done |
