mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
change chatgpt func
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
let fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch
|
||||
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" ];
|
||||
|
||||
@@ -109,13 +109,19 @@ in {
|
||||
sesh connect $session
|
||||
}
|
||||
|
||||
function chatgptlist(){
|
||||
for arg in "$@"; do
|
||||
echo "$arg:"
|
||||
echo "\`\`\`"
|
||||
cat "$arg"
|
||||
echo "\`\`\`"
|
||||
echo
|
||||
function chatgptfolder(){
|
||||
echo "################################"
|
||||
echo "### TREE ###"
|
||||
echo "################################"
|
||||
${pkgs.eza}/bin/eza --tree -aF --icons never
|
||||
echo -e "\n\n"
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user