From b831a0ebf241a8a9cd75bdcbb82ebc34d95a96d2 Mon Sep 17 00:00:00 2001 From: _N3m0 Date: Fri, 28 Apr 2023 20:53:08 +0200 Subject: [PATCH] bashrc : catall only text file --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 14be24a..77dbb3d 100644 --- a/bashrc +++ b/bashrc @@ -100,7 +100,7 @@ lsc(){ ls $1 | wc -l; } lsac(){ ls -A $1 | wc -l; } waka(){ echo $1 > .wakatime-project; } lol(){ [[ $1 = "" ]] && fortune | cowsay -f tux | lolcat || cowsay -f tux $1 | lolcat; } -cata(){ find -type f | grep -v \.git | grep -v build | xargs tail -n +1; } +catall(){ find -type f | grep -v \.git | grep -v build | xargs file | grep text | sed "s/:.*$//g" | xargs tail -n +1; } fgit(){ find | grep \\.git$ | sed s/\\.git//g; } lgit(){ fgit | fgit | grep --color=never ^\\./[^/]*/$ ; }