This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
treepwd_content() { | |
local current_dir=$(pwd) | |
local output_file="codebase.txt" | |
echo "Current directory: $current_dir" > "$output_file" | |
echo "" >> "$output_file" | |
echo "Directory Structure:" >> "$output_file" | |
# Updated exclusion pattern to properly handle target directory and its contents | |
find . -type d \( -name node_modules -o -name venv -o -name .git -o -name .vscode -o -name .next -o -name .mypy_cache -o -name .venv -o -name .DS_Store -o -path '*/target/*' -o -name build -o -name src-tauri/target \) -prune -o -print | sed -e 's;[^/]*/;| ;g;s;| \([^|]\)/;\1;g' >> "$output_file" | |
OlderNewer