change chatgpt func

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>

Former-commit-id: b7598a36ee
This commit is contained in:
Hadi
2025-05-28 10:24:07 +02:00
parent 7f094e0a4f
commit 0afd3fc6cf

View File

@@ -3,7 +3,7 @@
let fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch let fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch
in { in {
home.packages = with pkgs; [ bat ripgrep tldr sesh rmtrash trash-cli]; home.packages = with pkgs; [ bat ripgrep tldr sesh rmtrash trash-cli ];
home.sessionPath = [ "$HOME/go/bin" ]; home.sessionPath = [ "$HOME/go/bin" ];
@@ -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
} }