From ab3930e7a3b6f4139b2b4ccdff317f5e2d75308b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 28 Jun 2024 21:10:40 +0200 Subject: [PATCH] Updated config --- .config/fish/functions/countchars.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .config/fish/functions/countchars.fish diff --git a/.config/fish/functions/countchars.fish b/.config/fish/functions/countchars.fish new file mode 100644 index 0000000..88351c6 --- /dev/null +++ b/.config/fish/functions/countchars.fish @@ -0,0 +1,3 @@ +function countchars + tr -d '\n' < $argv[1] | fold -w1 | sort | uniq -c | sort -nr +end \ No newline at end of file