mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 12:02:09 +02:00
change chatgpt func
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -109,13 +109,19 @@ in {
|
|||||||
sesh connect $session
|
sesh connect $session
|
||||||
}
|
}
|
||||||
|
|
||||||
function chatgptlist(){
|
function chatgptfolder(){
|
||||||
for arg in "$@"; do
|
echo "################################"
|
||||||
echo "$arg:"
|
echo "### TREE ###"
|
||||||
echo "\`\`\`"
|
echo "################################"
|
||||||
cat "$arg"
|
${pkgs.eza}/bin/eza --tree -aF --icons never
|
||||||
echo "\`\`\`"
|
echo -e "\n\n"
|
||||||
echo
|
echo "##############################"
|
||||||
|
echo "### CONTENT ###"
|
||||||
|
echo "##############################"
|
||||||
|
find . -type f -not -path '*/.git/*' -print0 | while IFS= read -r -d "" file; do
|
||||||
|
echo -e "\n--- DEBUT: $file ---\n"
|
||||||
|
cat "$file"
|
||||||
|
echo -e "\n--- FIN: $file ---\n"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user