dev: automated commit - 2025-11-16 11:58:51
This commit is contained in:
parent
7dbe7f4685
commit
9dca029a62
5 changed files with 102 additions and 178 deletions
|
|
@ -5,7 +5,7 @@ set -euo pipefail
|
|||
CACHE_MAX_AGE=300
|
||||
MRU_SIZE=20
|
||||
|
||||
# Debug logging (set DEBUG=1 to enable)
|
||||
# Debug logging (set DEBUG=1 to enable via environment variable)
|
||||
DEBUG="${DEBUG:-0}"
|
||||
|
||||
debug() {
|
||||
|
|
@ -87,7 +87,7 @@ find_git_repos() {
|
|||
find "$DEV_DIR" -maxdepth 3 -type d -name ".git" -print0 |
|
||||
xargs -0 -n1 dirname | sort -u >"$CACHE_FILE"
|
||||
fi
|
||||
local repo_count=$(wc -l < "$CACHE_FILE")
|
||||
local repo_count=$(wc -l <"$CACHE_FILE")
|
||||
debug "Found $repo_count repositories"
|
||||
cat "$CACHE_FILE"
|
||||
}
|
||||
|
|
@ -200,9 +200,9 @@ debug "Class name: $CLASS_NAME"
|
|||
debug "Launching ghostty with launch-or-focus..."
|
||||
|
||||
launch-or-focus ghostty \
|
||||
--class "$CLASS_NAME" \
|
||||
--title "$PROJECT_NAME" \
|
||||
--working-directory="$SELECTED" \
|
||||
--title="$PROJECT_NAME" \
|
||||
--class="$CLASS_NAME" \
|
||||
-e bash -c "if tmux has-session -t '$SESSION_NAME' 2>/dev/null; then \
|
||||
tmux attach -t '$SESSION_NAME'; \
|
||||
else \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue