1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

more tweaking

This commit is contained in:
Darren Schroeder 2021-05-26 13:04:04 -05:00
parent 4dad88ad92
commit 19bd28d4f9

View file

@ -23,9 +23,9 @@ let nu_table = ($nu_files |
} | where Category !~ ".git" | select Category File | sort-by Category)
# Let's fix the file now
let nu_table = (echo $nu_table | update File { |it|
let file_path = (echo $it.File | into string | str find-replace '\\' '/')
let file_name = (echo $file_path | path basename)
let nu_table = ($nu_table | update File { |it|
let file_path = ($it.File | into string | str find-replace '\\' '/')
let file_name = ($file_path | path basename)
$"[($file_name)](char lparen)./($file_path)(char rparen)"
})