mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-22 09:35:50 +01:00
add git log parsing into nu config
This commit is contained in:
parent
166835b305
commit
d365273653
1 changed files with 14 additions and 1 deletions
|
@ -790,7 +790,20 @@ def nsp [
|
|||
def lcr [
|
||||
file_extension: string
|
||||
] {
|
||||
ls $"**/*.($file_extension)" | each {|file| open $file.name | lines --skip-empty | length} | math sum
|
||||
ls $"**/*.($file_extension)"
|
||||
| each {|file|
|
||||
open $file.name
|
||||
| lines --skip-empty
|
||||
| length }
|
||||
| math sum
|
||||
}
|
||||
|
||||
def glog [
|
||||
amount: int
|
||||
] {
|
||||
git log --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD -n $amount
|
||||
| lines
|
||||
| split column "»¦«" commit subject name email date
|
||||
}
|
||||
|
||||
alias gnix = cd ~/nix-configs;
|
||||
|
|
Loading…
Reference in a new issue