From 8287ff3499b9f2a2a2a48114327c34b948085870 Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Tue, 22 Oct 2019 10:21:06 +0200 Subject: [PATCH] support kotlin and fix illegal byte sequence --- dot_zsh_functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_zsh_functions b/dot_zsh_functions index df17455..a93cc75 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -121,6 +121,7 @@ cmd_loc="find . -type f \( \ -o -name '*.rb' \ -o -name '*.go' \ -o -name '*.java' \ + -o -name '*.kt' \ -o -name '*.c' -o -name '*.h' \ -o -name '*.js' \ -o -name '*.tsx' \ @@ -139,7 +140,7 @@ function uloc { # Top lines of code function toploc { - eval "$cmd_loc | cut -c 1-100 | LANG=C LC_CTYPE=C sort | uniq -c | sort -nr" + eval "$cmd_loc | LANG=C LC_CTYPE=C cut -c 1-100 | LANG=C LC_CTYPE=C sort | uniq -c | LANG=C LC_CTYPE=C sort -nr" } # Find files bigger than X size and sort them by size