mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-02-25 17:38:04 +00:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# With Externals
|
||||
|
||||
This folder includes various nushell scripts that require installing an external program in order to work.
|
||||
|
||||
### Contributing
|
||||
|
||||
Please include the name of the program and, if possible, basic installation instructions, as part of your script.
|
||||
14
dot_config/nushell/nu_scripts/modules/with_externals/loc.nu
Normal file
14
dot_config/nushell/nu_scripts/modules/with_externals/loc.nu
Normal file
@@ -0,0 +1,14 @@
|
||||
# This script requires that `tokei` be installed and available!
|
||||
|
||||
# Count lines of code in a project.
|
||||
export def main [
|
||||
...rest # args to pass to tokei
|
||||
] {
|
||||
tokei -o json ...$rest |
|
||||
from json |
|
||||
transpose |
|
||||
rename lang lines |
|
||||
insert files { get lines.reports | length } |
|
||||
select lang files lines.code lines.comments lines.blanks
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user