From 89fdb93f16097e62dafe5d7c46b888d1c723a462 Mon Sep 17 00:00:00 2001 From: AccursedGalaxy Date: Thu, 30 May 2024 17:28:08 +0200 Subject: [PATCH] count py lines alias --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index 30c52ff..509a3fe 100644 --- a/.zshrc +++ b/.zshrc @@ -133,6 +133,9 @@ alias c='clear' # Clear terminal display alias cat='batcat' +# Alias to count all lines in a python project - all .py files apart from other generated files +alias countpy='find . -name "*.py" -not -path "*/migrations/*" -not -path "*/__pycache__/*" -not -path "*/.venv/*" -not -path "*/.git/*" -print0 | xargs -0 cat | wc -l' + # __ __ _ _ # (_ _ ._ o ._ _|_ (_ _|_ _|_ _|_